2019-02-26 03:08:44 +00:00
|
|
|
# cal
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 打印日历信息。
|
2021-08-23 20:33:24 +01:00
|
|
|
> 更多信息:<https://ss64.com/osx/cal.html>.
|
2019-02-26 03:08:44 +00:00
|
|
|
|
2023-05-22 12:10:21 +01:00
|
|
|
- 显示本月日历:
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal`
|
|
|
|
|
2023-05-22 12:10:21 +01:00
|
|
|
- 显示上月、本月和下月的日历:
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal -3`
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 显示指定月份的日历(月份为 1-12 月):
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal -m {{月}}`
|
|
|
|
|
2023-05-22 12:10:21 +01:00
|
|
|
- 显示本年日历:
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal -y`
|
|
|
|
|
2023-05-22 12:10:21 +01:00
|
|
|
- 显示指定年份的日历(年份为 4 个数字):
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal {{年}}`
|
|
|
|
|
2023-05-22 12:10:21 +01:00
|
|
|
- 显示指定年月的日历:
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`cal {{月}} {{年}}`
|
|
|
|
|
2023-05-22 12:10:21 +01:00
|
|
|
- 显示指定年份的复活节日期:
|
2019-02-26 03:08:44 +00:00
|
|
|
|
|
|
|
`ncal -e {{年}}`
|