Navigation:  thinBasic Modules > DT (Date Handling) >

DT_IsLeapYear

Previous pageReturn to chapter overviewNext page

 

Description

 

The DT_IsLeapYear () function converts a given number of seconds to the correspondent time string.

 

Syntax

 

 DT_IsLeapYear(nYear AS NUMBER) AS NUMBER

 

Returns

 

Returns AS NUMBER

   If the year is leap the return value is nonzero.

   If the year isn't leap, the return value is zero.

 

Parameters

 

nYear  AS NUMBER

   The year.

 

Remarks

 

 

Restrictions

 

 

See also

 

 

 

Examples

 

  IF DT_IsLeapYear(2004) THEN

     MSGBOX  0, "Year 2004 is leap."     ' results: Year 2004 is leap.

  END IF