topleapyr
Calendar
Return value
0 then not a leap year, 1 then year is a leap year
with the same number of elements than year.
Parameters
year
in
required
type: scalar or array
Examples
IDL> result = leapyr(2000)
Version history
Version
$Id: leapyr.pro 371 2008-08-07 09:32:02Z pinsard $
History
Originally Written by: Trevor Harris, Physics Dept., University of Adelaide,
20/09/88
November 2004: correction for century years... S. Masson;
Every year divisible by 4 is a leap year.
But every year divisible by 100 is NOT a leap year
Unless the year is also divisible by 400, then it is still a
leap year.
This means that year 1800, 1900, 2100, 2200, 2300 and 2500 are
NOT leap years, while year 2000 and 2400 are leap years.
+ supress the automatic change 89 -> 1989
June 2005 update for new commons, Sebastien Masson.
Other attributes
Uses routines
Statistics
McCabe cyclic | 4 |
McCabe essential | 1 |
McCabe modular design | 1 |