The CALENDAR procedure displays a calendar for a month or an entire year on the current plotting device. This IDL routine imitates the UNIX cal command.

This routine is written in the IDL language. Its source code can be found in the file calendar.pro in the lib subdirectory of the IDL distribution.

Examples


; Display a calendar for the year 2038.
CALENDAR, 2038
 
; Display the calendar for October, 1582.
CALENDAR, 10, 1582

Syntax


CALENDAR [[, Month], Year]

Arguments


Month

The number of the month for which a calendar is desired (1 is January, 2 is February, ..., 12 is December). If called without arguments, CALENDAR draws a calendar for the current month.

Year

The number of the year for which a calendar should be drawn. If YEAR is provided without MONTH, a calendar for the entire year is drawn. If called without arguments, CALENDAR draws a calendar for the current month.

Version History


Original

Introduced

8.2.3 Moved Examples to the top.

See Also


SYSTIME