tldr/pages/osx/cal.md

33 lines
592 B
Markdown
Raw Normal View History

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