Difference between revisions of "DateTime isLeapYear"

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

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

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