tldr/pages.zh/osx/cal.md

32 lines
402 B
Markdown
Raw Normal View History

2019-02-26 03:08:44 +00:00
# cal
> 打印日历信息.
- 打印本月日历:
`cal`
- 显示上个月,当前月,下个月的日历:
`cal -3`
- 显示指定月份的日历(month 为 1-12):
`cal -m {{月}}`
- 显示全年日历:
`cal -y`
- 显示指定某年的日历 (year 为 4 个数字):
`cal {{年}}`
- 显示特定年和月的日历:
`cal {{月}} {{年}}`
- 显示指定年的复活节日期:
`ncal -e {{年}}`