blob: 6ad706d516dae1c77ae0f7a86fdf904309c0548b (plain
.Dd Feburary 19, 2022
.Dt WCAL 1
.Nd ISO weekly calendar
.Op Fl 13yci
.Op Fl d Ar YYYY Ns Op Ar -MM Ns Op Ar -DD
.Op Fl d Ar YYYY Ns Ar - Ns Cm W Ns Ar WW Ns Op Ar -D
utility prints a week-oriented calendar.
Each week is prefixed with its ISO week number.
When outputting to a TTY,
the current day, week day, and week are shown in reverse video.
The options are as follows:
.Bl -tag -width Ds
.It Fl 1
Show the calendar for the current month.
(This is the default.)
.It Fl 3
Show the calendar for the previous, current, and next month.
.It Fl y
Show the calendar for the whole year.
.It Fl c
Show the calendar for the current week.
.It Fl i
Show the calendar starting from the current week indefinitely.
.It Fl d Ar YYYY Ns Op Ar -MM Ns Op Ar -DD
Show the calendar for a different date than today.
in case only a year is passed.
.It Fl d Ar YYYY Ns Ar - Ns Cm W Ns Ar WW Ns Op Ar -D
Show the calendar for a different date (ISO week notation) than today.
Defaults to Monday if no week day is given.
.Sh EXIT STATUS
.Sh SEE ALSO
.Xr cal 1
is inspired by this online tool:
.An Leah Neukirchen Aq Mt email@example.com
is in the public domain.
To the extent possible under law,
the creator of this work
has waived all copyright and related or
neighboring rights to this work.
This program uses a proleptic Gregorian Calendar
and may yield unexpected results before 1752.
The year 0000 starts on a Saturday.