DayOfYear
From CometWiki
(Initial Construction of page) |
m (minor) |
||
Line 1: | Line 1: | ||
- | '''DayOfYear Function''' -- Part of the CometDate series of functions. | + | '''DayOfYear Function''' -- Part of the [[CometDates|CometDate series]] of functions. |
'''Syntax:''' DayOfYear(CometDate) | '''Syntax:''' DayOfYear(CometDate) |
Latest revision as of 20:33, 25 January 2011
DayOfYear Function -- Part of the CometDate series of functions.
Syntax: DayOfYear(CometDate)
Discussion: The CometDate DayOfYear function extracts the Day of the year from a CometDate Date Serial Number. CometDates are based on a date of January 1, 1800. CometDates before that date are negative and after are positive.
The DayOfYear function for January first of any year will yield DayOfYear = 1.
The CometDate functions respect the rules for leap years (i.e., the years 1800 and 1900 were not leap years, but the year 2000 is a leap year).
The practical range of CometDates is -657071 (01/01/01) to 2994623 (12/31/9999) but dates outside of that range may be usable in some contexts. There is no year 0 AD, The date goes from 1BC to 1AD.
For a reference of all of the functions associated with CometDates see this page CometDates.