Skip to content

calendar

time · scripts/time/calendar.m

: c = calendar ()
: c = calendar (d)
: c = calendar (y, m)
: calendar (…)

Month calendar as a 6-by-7 matrix.

Each row is a week from Sunday to Saturday and each entry is a day of the month, with zeros before the first and after the last day. Without arguments the current month is used. d, a serial date number or a date string, selects the month that contains that date; y and m select a year and month directly.

When no output is requested the calendar is printed with a heading and the days of the week, instead of being returned.