IsLeapYear

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(Initial Construction of page)
m (minor)
 
(One intermediate revision not shown)
Line 1: Line 1:
-
'''IsLeapYearFunction''' -- Part of the CometDate series of functions.
+
'''IsLeapYearFunction''' -- Part of the [[CometDates|CometDate series]] of functions.
'''Syntax:'''  IsLeapYear(CometDate)   
'''Syntax:'''  IsLeapYear(CometDate)   
-
'''Discussion:'''  The CometDate IsLeapYear function returns a numeric indicator w.
+
'''Discussion:'''  The CometDate IsLeapYear function returns TRUE or FALSE depending on whether the CometDate falls within a Leap Year.
-
CometDates are based on a date of January 1, 1800. CometDates before that date are negative and after are positive.
+
-
CometDate Weeks begin on Sunday ... The DayOfWeek function for any Monday will yield 2.
+
The Comet Numeric constant TRUE is predefined as 1, and FALSE as 0.
 +
 
 +
CometDates are based on a date of January 1, 1800. CometDates before that date are negative and after are positive.
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 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).

Latest revision as of 20:30, 25 January 2011

IsLeapYearFunction -- Part of the CometDate series of functions.

Syntax: IsLeapYear(CometDate)

Discussion: The CometDate IsLeapYear function returns TRUE or FALSE depending on whether the CometDate falls within a Leap Year.

The Comet Numeric constant TRUE is predefined as 1, and FALSE as 0.

CometDates are based on a date of January 1, 1800. CometDates before that date are negative and after are positive.

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.

Personal tools