Files
tldr/pages.zh/osx/cal.md

32 lines
540 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# cal
> 打印日历信息。
> 更多信息:<https://keith.github.io/xcode-man-pages/cal.1.html>。
- 显示当前月份的日历:
`cal`
- 显示上个月、当前和下个月:
`cal -3`
- 显示特定月份的日历1-12 或名称):
`cal -m {{month}}`
- 显示当前年份的日历:
`cal -y`
- 显示特定年份的日历4位数字
`cal {{year}}`
- 显示特定月份和年份的日历:
`cal {{month}} {{year}}`
- 显示给定年份的复活节日期(西方基督教教会):
`ncal -e {{year}}`