Date functions
function day_of_year( year : integer, month : integer, day : integer ) function days_in_month( year : integer, month : integer ) function monthday( year : integer, day : integer ) function isleapyear( year : integer )
days_in_month returns an integer array (of the same dimensionality as year and month), where each value represents the number of days in a particular month (Gregorian calendar).
monthday returns an integer array (same dimensionality as year), where each value represents the concatenated month and day as an integer, (Gregorian calendar). For example, given year 1933 and day 245, monthday would return 902 for September 2.
isleapyear returns a logical array (with same dimensionality as year), where each value is true or false, depending if the corresponding year is a leap year (Gregorian calendar).
; ; Every element of 'i' will be false in this case. ; i = isleapyear((/1997,1993,1900,1990/)) ; ; 'j' will be equal to (/61,60/). ; j = day_of_year((/1996,1990/),(/3,3/),(/1,1/)) ; ; 'k' will be equal to (/29,28,31/) ; k = days_in_month((/1996,1997,1/),(/2,2,1/)) ; ; 'l' will be equal to (/902,1231,1231,301/) ; l = monthday((/1933,1996,1997,1996/),(/245,366,365,61/))
NG4.1 Home, Index, Examples, Glossary, Feedback, Ref Contents, Ref WhereAmI?