tldr/pages/osx/cal.md

32 lines
519 B
Markdown
Raw Normal View History

# cal
> Prints calendar information.
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}}`