Difference between revisions of "DateTime isLeapYear"

From Catglobe Wiki
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:General_Functions]]
+
{{HelpFiles}}

+
 
 +
<br>
 +
 
 +
==== DateTime_isLeapYear  ====
 +
 
 +
Check whether year is leap year or not
 +
 
 +
'''Syntax'''
 +
 
 +
DateTime_isLeapYear(year)
  
====DateTime_isLeapYear====
+
'''Arguments'''
  
Check whether year is leap year or not
+
*year: is number
  
'''Syntax'''
+
'''Return value'''  
  
DateTime_isLeapYear(year)
+
bool
  
'''Arguments'''
+
'''Example'''  
  
* year: is number
+
''number year = 2008;''
  
'''Return value'''
+
''bool b = DateTime_isLeapYear(year);''  
  
bool
+
''if (b) print(convertToString(year) + " is a leap year.");''
  
'''Example'''
+
''else print(convertToString(year) + " is not a leap year."); ''  
  
number year = 1998;
+
''//Result: 2008 is a leap year. ''
  
print(DateTime_isLeapYear(year));
+
'''Availability'''
  
'''Availability'''
+
Version 5.7 __NOTOC__ <!-- imported from file: 7544.htm-->
  
Version 5.7
+
[[Category:General_Functions]]
__NOTOC__
 
<!-- imported from file: 7544.htm-->
 

Latest revision as of 08:50, 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(convertToString(year) + " is a leap year.");

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

//Result: 2008 is a leap year.

Availability

Version 5.7