Difference between revisions of "DateTime isLeapYear"

From Catglobe Wiki
Jump to: navigation, search
Line 3: Line 3:
  
  
====DateTime_isLeapYear====
+
==== DateTime_isLeapYear ====
  
Check whether year is leap year or not
+
Check whether year is leap year or not  
  
'''Syntax'''
+
'''Syntax'''  
  
DateTime_isLeapYear(year)
+
DateTime_isLeapYear(year)  
  
'''Arguments'''
+
'''Arguments'''  
  
* year: is number
+
*year: is number
  
'''Return value'''
+
'''Return value'''  
  
bool
+
bool  
  
'''Example'''
+
'''Example'''  
  
number year = 1998;
+
''number year = 2008;''
  
print(DateTime_isLeapYear(year));
+
''bool b = DateTime_isLeapYear(year);''
  
'''Availability'''
+
''if (b) print(year + " is a leap year.");''
  
Version 5.7
+
''else print(year + " is not a leap year.");''
__NOTOC__
+
 
<!-- imported from file: 7544.htm-->
+
'''Availability'''
 +
 
 +
Version 5.7 __NOTOC__ <!-- imported from file: 7544.htm-->

Revision as of 08:48, 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(year + " is not a leap year.");

Availability

Version 5.7