Tests if a specific year is a leap year


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


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


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


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


     .  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.

 Examples :
 ? Date(), IsLeap() 
 ? AddMonth( 12 ), IsLeap(AddMonth( 12)) 
 ? AddMonth( -12 ), IsLeap(AddMonth( -12))

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.