<cDateTime>.IsLeapYear

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Date and Time > cDateTime > cDateTime_Properties >

<cDateTime>.IsLeapYear

 

Description

 

Returns %TRUE / %FALSE to tell if the cDateTime object year is a leap year

 

Syntax

 

n = <cDateTime>.IsLeapYear

 

Returns

 

Number.

 

Remarks

 

Restrictions

 

Read only.

 

See also

 

Examples

 

' Create an object with current date and time

Dim myDateTime As New cDateTime

 

' Show it to the user

MsgBox 0, "myDateTime is leap year?:" + $CRLF + myDateTime.IsLeapYear