IsLeapYear()

IsLeapYear()

Checks if the given date is a leap year.

Syntax

      IsLeapYear( <dDate> )  --> lTrueOrFalse

Arguments

<dDate> A valid date.

Returns

<lTrueOrFalse> A logical that indicates if the date year is leap

Description

This function returns true if the given date is a leap year and false if isn’t.

Examples

      ? IsLeapYear( hb_SToD( "20000101" ) ) // -> .T.
      ? IsLeapYear( hb_SToD( "20010101" ) ) // -> .F.

Compliance

This function is new in Harbour.

Platforms

All

Files

Library is libmisc

Seealso

DaysInMonth()

Advertisements

2 responses to “IsLeapYear()

  1. Pingback: Harbour Check Functions | Viva Clipper !

  2. Pingback: Harbour All Functions – I | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s