Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>isleap() - check if a year or date is a leap year</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     isleap() - check if a year or date is a leap year
  Usage:    <logical> = isleap(<date>)
            <logical> = isleap(<year>)
  Params:   date type variable, or an integer equal to the year
            you want to check.

  Returns:  logical .T. if the specified year is a leap year, .F.
            if not or invalid date.

 ---------------------------------- Example ---------------------------------

                 if (isleap(date())
                      ? "This year is a leap year!"
                 endif

                 if (isleap(1980))
                      ? "1980 was a leap year...."
                 endif


See Also: islastday() num2day() num2month() lastday() dtow()

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