Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper Tools . Books 1-3 - <b>isleap()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ISLEAP()
 Tests if a specific year is a leap year
------------------------------------------------------------------------------
 Syntax

     ISLEAP([<dDate>]) --> lLeapYear

 Argument

     <dDate>  Designates whether or not the specified date is in a leap
     year.  The default is the system date.

 Returns

     ISLEAP() returns .T. when  <dDate> lies in a leap year; otherwise, it
     returns .F..

 Description

     A number of technical financial calculations need to know if a year has
     365 or 366 days.  ISLEAP() determines this.

 Note

     .  When parameters are missing, the function automatically uses
        the system date.  You must adhere to all rules for leap year tests.
        In the rare occurrence of a century change, the function also returns
        a correct result.

 Example

     Determine if the following dates are in a leap year:

     ? ISLEAP(CTOD("01/01/1901"))      // .F., No leap year
     ? ISLEAP(CTOD("09/30/1988"))      // .T., leap year
     ? ISLEAP(CTOD("01/01/2000"))      // .T., leap year


See Also: Introduction

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson