2.22.1.1
-Adds Hours of Day DaySpan
and Hours of Night NightSpan
TimeSpan
properties to the CelestialInfo
class for easier calculation of total day and night hours for a date at a specified location.
Example:
Coordinate c = new Coordinate(-47, -122, new DateTime(2023, 9, 30));
c.Offset = -7;
Console.WriteLine("DAY SPAN: " + c.CelestialInfo.DaySpan.TotalHours); //12.5616666666667
Console.WriteLine("NIGHT SPAN: " + c.CelestialInfo.NightSpan.TotalHours); //11.4383333333333