DT_IsLeapYear
<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > Obsolete > DT (Date Handling) > DT_IsLeapYear |
This functionality has been made obsolete by newer, better solved CDateTime available directly in core instead.
Description
The DT_IsLeapYear () function converts a given number of seconds to the correspondent time string.
Syntax
DT_IsLeapYear(nYear AS NUMBER) AS NUMBER
Returns
Returns AS NUMBER
If the year is leap the return value is nonzero.
If the year isn't leap, the return value is zero.
Parameters
nYear AS NUMBER
The year.
Remarks
Restrictions
See also
Examples
IF DT_IsLeapYear(2004) THEN
MSGBOX 0, "Year 2004 is leap." ' results: Year 2004 is leap.
END IF