2014-02-10 23:44:02 +00:00
|
|
|
# cal
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Prints calendar information.
|
2024-01-31 10:20:27 +00:00
|
|
|
> More information: <https://keith.github.io/xcode-man-pages/cal.1.html>.
|
2014-02-10 23:44:02 +00:00
|
|
|
|
2016-01-20 11:38:37 +00:00
|
|
|
- Display a calendar for the current month:
|
2014-02-10 23:44:02 +00:00
|
|
|
|
|
|
|
`cal`
|
|
|
|
|
2019-01-27 04:49:38 +00:00
|
|
|
- Display previous, current and next month:
|
|
|
|
|
|
|
|
`cal -3`
|
|
|
|
|
2017-05-01 14:17:01 +01:00
|
|
|
- Display a calendar for a specific month (1-12 or name):
|
2016-01-20 11:38:37 +00:00
|
|
|
|
2017-05-01 14:17:01 +01:00
|
|
|
`cal -m {{month}}`
|
2016-01-20 11:38:37 +00:00
|
|
|
|
2017-05-01 14:17:01 +01:00
|
|
|
- Display a calendar for the current year:
|
2014-02-10 23:44:02 +00:00
|
|
|
|
2016-01-20 17:59:42 +00:00
|
|
|
`cal -y`
|
|
|
|
|
2017-05-01 14:17:01 +01:00
|
|
|
- Display a calendar for a specific year (4 digits):
|
2016-01-20 17:59:42 +00:00
|
|
|
|
2017-05-01 14:17:01 +01:00
|
|
|
`cal {{year}}`
|
2014-02-10 23:44:02 +00:00
|
|
|
|
2017-05-01 14:17:01 +01:00
|
|
|
- Display a calendar for a specific month and year:
|
|
|
|
|
|
|
|
`cal {{month}} {{year}}`
|
|
|
|
|
|
|
|
- Display date of Easter (Western Christian churches) in a given year:
|
2014-02-10 23:44:02 +00:00
|
|
|
|
2016-01-20 11:38:37 +00:00
|
|
|
`ncal -e {{year}}`
|