Skip to content

2.22.1.1

Compare
Choose a tag to compare
@Tronald Tronald released this 20 Feb 00:21
· 8 commits to master since this release
0e93934

-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