DateTime isLeapYear

From Catglobe Wiki
Revision as of 09:48, 21 December 2011 by Cg van (talk | contribs)
Jump to: navigation, search




DateTime_isLeapYear

Check whether year is leap year or not

Syntax

DateTime_isLeapYear(year)

Arguments

  • year: is number

Return value

bool

Example

number year = 2008;

bool b = DateTime_isLeapYear(year);

if (b) print(year + " is a leap year.");

else print(year + " is not a leap year.");

Availability

Version 5.7