1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/osx/cal.md

33 lines
593 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 03:38:37 -08:00
- Display a calendar for the current month:
`cal`
- Display previous, current, and next month:
2019-01-26 20:49:38 -08:00
`cal -3`
- Display a calendar for a specific month (1-12 or name):
2016-01-20 03:38:37 -08:00
`cal -m {{month}}`
2016-01-20 03:38:37 -08:00
- Display a calendar for the current year:
2016-01-20 09:59:42 -08:00
`cal -y`
- Display a calendar for a specific year (4 digits):
2016-01-20 09:59:42 -08: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 03:38:37 -08:00
`ncal -e {{year}}`