mirror of https://github.com/CrimsonTome/tldr.git
32 lines
402 B
Markdown
32 lines
402 B
Markdown
|
# cal
|
||
|
|
||
|
> 打印日历信息.
|
||
|
|
||
|
- 打印本月日历:
|
||
|
|
||
|
`cal`
|
||
|
|
||
|
- 显示上个月,当前月,下个月的日历:
|
||
|
|
||
|
`cal -3`
|
||
|
|
||
|
- 显示指定月份的日历(month 为 1-12):
|
||
|
|
||
|
`cal -m {{月}}`
|
||
|
|
||
|
- 显示全年日历:
|
||
|
|
||
|
`cal -y`
|
||
|
|
||
|
- 显示指定某年的日历 (year 为 4 个数字):
|
||
|
|
||
|
`cal {{年}}`
|
||
|
|
||
|
- 显示特定年和月的日历:
|
||
|
|
||
|
`cal {{月}} {{年}}`
|
||
|
|
||
|
- 显示指定年的复活节日期:
|
||
|
|
||
|
`ncal -e {{年}}`
|