Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

DateTime isLeapYear: Difference between revisions

From Catglobe Wiki
Cg van (talk | contribs)
No edit summary
Cg van (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:General_Functions]]
{{HelpFiles}}  
{{HelpFiles}}


<br>


==== DateTime_isLeapYear ====
==== DateTime_isLeapYear ====


Check whether year is leap year or not  
Check whether year is leap year or not  
Line 21: Line 21:
'''Example'''  
'''Example'''  


''number year = 2008;''
''number year = 2008;''
 
''bool b = DateTime_isLeapYear(year);''  


''bool b = DateTime_isLeapYear(year);''
''if (b) print(year + " is a leap year.");''  


''if (b) print(year + " is a leap year.");''
''else print(convertToString(year) + " is not a leap year."); ''


''else print(year + " is not a leap year.");''
''//Result: 2008 is a leap year. ''


'''Availability'''  
'''Availability'''  


Version 5.7 __NOTOC__ <!-- imported from file: 7544.htm-->
Version 5.7 __NOTOC__ <!-- imported from file: 7544.htm-->  
 
[[Category:General_Functions]]

Revision as of 07:49, 21 December 2011




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(convertToString(year) + " is not a leap year.");

//Result: 2008 is a leap year.

Availability

Version 5.7