Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_isleap()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_ISLEAP()


Syntax:        L_ISLEAP(<expD>)


Purpose:       To test whether a date falls within a leap year.


Arguments:     <expD> is a Clipper date.


Returns:       A logical (.T.) if the date falls within a leap year
               else returns a logical (.F.).


Usage:         In date based calculations and validation routines.


Examples:      ? L_ISLEAP(CTOD("01/01/1900")    && Result: .F.
               ? L_ISLEAP(CTOD("01/01/2000")    && Result: .T.


Notes:         For "century years", these are only leap years if
               exactly divisible by 400.


Language:      Clipper

See Also: L_ISDSDATE() L_ISDVALID()

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