about summary refs log tree commit diff
path: root/wcal.1
diff options
context:
space:
mode:
Diffstat (limited to 'wcal.1')
-rw-r--r--wcal.158
1 files changed, 58 insertions, 0 deletions
diff --git a/wcal.1 b/wcal.1
new file mode 100644
index 0000000..4371958
--- /dev/null
+++ b/wcal.1
@@ -0,0 +1,58 @@
+.Dd March 28, 2020
+.Dt WCAL 1
+.Os
+.Sh NAME
+.Nm wcal
+.Nd ISO weekly calendar
+.Sh SYNOPSIS
+.Nm
+.Op Fl 13yci
+.Op Fl d Ar YYYY-MM-DD
+.Sh DESCRIPTION
+The
+.Nm
+utility prints a week-oriented calendar.
+Each week is prefixed with its ISO week number.
+.Pp
+When outputting to a TTY, the current day is shown in reverse video.
+.Pp
+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-MM-DDD
+Show the calendar for a different date than today.
+.El
+.Sh EXIT STATUS
+.Ex -std
+.Sh SEE ALSO
+.Xr cal 1
+.Pp
+.Nm
+is inspired by this online tool:
+.Lk https://demeyere.design/journal/plain-text-calendar
+.Sh AUTHORS
+.An Leah Neukirchen Aq Mt leah@vuxu.org
+.Sh LICENSE
+.Nm
+is in the public domain.
+.Pp
+To the extent possible under law,
+the creator of this work
+has waived all copyright and related or
+neighboring rights to this work.
+.Pp
+.Lk http://creativecommons.org/publicdomain/zero/1.0/
+.Sh BUGS
+This program uses
+.Xr mktime 3
+for date manipulation and does not respect the Gregorian calendar reform.