Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_isleap() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_ISLEAP()

 DESCRIPTION

 C_ISLEAP() determines whether a specified year is a leap year.

 SYNTAX

 C_ISLEAP(date)

 PARAMETERS

 date (D/C/N) is the variable to check for leap year.  The date
 argument may be specified as a date variable, a character string
 ("DD/MM/YY"), or a two or four digit numeric year in the format YY
 or YYYY.

 RETURNS

 C_ISLEAP() returns true (.T.) if the year is a leap year, otherwise
 false (.F.).

 EXAMPLES

 date1 = ctod("10/01/88")
 date2 = ctod("02/01/90")

 ? c_isleap(date1)      --> .T.  && Check date variable
 ? c_isleap(date2)      --> .F.  && Check date variable
 ? c_isleap("01/01/92") --> .T.  && Check character string date
 ? c_isleap(1990)       --> .F.  && Check numeric 4 digit year
 ? c_isleap(92)         --> .T.  && Check numeric 2 digit year


See Also: C_DATECAT() C_DATESCAT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson