<<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 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 325 2007-12-06 10:04:53Z 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

Statistics

McCabe cyclic 11
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.