Calendar/
daysinmonth.pro
give the number of days in a specific month
daysinmonth
Calendar
result = daysinmonth([month][, year])
Return value
number of days in a month or -1 in case of error
Parameters
month
in
optional
type: integer
month number
year
in
optional
default: from "time" common variable of cm_4cal
To specify the year of the month. Used only if the common variable
key_caltype = 'greg'. In that case, month and year must have the same
number of elements.
Examples
IDL> ndays = daysinmonth(2, 2000)
Version history
Version
$Id: daysinmonth.pro 371 2008-08-07 09:32:02Z pinsard $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
2/7/98
update/review/english/new commons: June 2005 Sebastien Masson.
Other attributes
Uses routines
cm_4cal
updatenew
Produced by IDLdoc 2.0.