<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

Calendar/

daysinmonth.pro

give the number of days in a specific month

topdaysinmonth calendar

result = daysinmonth([month][, year])

Return value

number of days in a month or -1 in case of error

Parameters

month        in optional

year        in optional

Year is used only if the common variable key_caltype = 'greg'. In that case, month and year must have the same number of elements. If not provided, we take month and year from "time" common variable.

Examples

IDL> ndays = daysinmonth(2, 2000)

Version history

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
Produced by IDLdoc 2.0.