You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3ad7df1
Browse filesBrowse the repository at this point in the historyBrowse files
cal: add --saturday option to set Saturday as start of week
Add -t, --saturday option to display Saturday as the first day of the
week, alongside the existing --sunday (-s) and --monday (-m) options.
- Add -t/--saturday to getopt and longopts.
- Fix cal_fill_month day alignment and remove the month_days increment
that corrupted calendar grids when weekstart was Saturday.
- Adjust firstwork index to 2 for workday/weekend color highlighting.
- Generalize week_number and week_to_day calculations for weekstart.
- Update bash-completion, man page, and regression tests.
Fixes: #3861
Signed-off-by: MkP369 <kritarthprasad01@gmail.com>
Copy file name to clipboardExpand all lines: misc-utils/cal.1.adoc
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,9 @@ Display _number_ of months, starting from the month containing the date.
77
77
*-S, --span*::
78
78
Display months spanning the date.
79
79
80
+
*-t*, *--saturday*::
81
+
Display Saturday as the first day of the week.
82
+
80
83
*-s*, *--sunday*::
81
84
Display Sunday as the first day of the week.
82
85
@@ -151,7 +154,7 @@ Denote the _day_ (1-31), _month and year_, and the day will be highlighted if th
151
154
152
155
== NOTES
153
156
154
-
A year starts on January 1. The first day of the week is determined by the locale or the *--sunday*and *--monday* options.
157
+
A year starts on January 1. The first day of the week is determined by the locale or the *--sunday*, *--monday* and *--saturday* options.
155
158
156
159
The week numbering depends on the choice of the first day of the week. If it is Sunday then the customary North American numbering is used, where 1 January is in week number 1. If it is Monday (*-m*) then the ISO 8601 standard week numbering is used, where the first Thursday is in week number 1.
0 commit comments