search for: ortest

Displaying 1 result from an estimated 1 matches for "ortest".

Did you mean: fortest
2013 Dec 02
1
Days to solstice calculation
...titude, and the Julian day of the year (ie Jan 1 = 1 and so on). This appears to be very accurate. The second function takes a given date, extracts the year, determines the number of days in it, and uses the first function to calculate the hours of daylight in each day, and returns the longest or shortest one (Summer or Winter Solstice). But, in the case of leap years and non leap years, the date returned is identical, as is evidenced by Jan 1 in the provided examples being 170 days from summer solstice in both 2008 and 2007. This was not the case, the solstice should vary by one day between these y...