Univeristy of Alabama in Huntsville

UAH LTG IDL Library

IDL Routines from Phillip Bitzer and UAH Lightning Group

summary     class     fields     routine details     file attributes

misc/time/

pmb_is_leap.pro

Misc


Determines if the passed year is a leap year

Examples

: print, pmb_is_leap(2000) print, pmb_is_leap(2001)

Author information

Author

Phillip M. Bitzer, University of Alabama in Huntsville, pm.bitzer "AT" uah.edu

History

Modification History:

First written: Sometime in 2008 Aded doc: Aug 31, 2012

Routines

top pmb_is_leap

result = pmb_is_leap(year)

Function to determine if a year is a leap year

Return value

: 1 : if year is a leap year 0 : if year is not a leap

Parameters

year in required type=integer

The year in question

File attributes

Modification date: Tue Apr 4 15:07:29 2017
Lines: 6
Docformat: rst rst