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

32 lines
602 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.

# 日历
> 显示一个突出显示当前日期的日历。
> 更多信息:<https://man.freebsd.org/cgi/man.cgi?cal>。
- 显示当前月份的日历:
`cal`
- 显示特定年份的日历:
`cal {{year}}`
- 显示特定月份和年份的日历:
`cal {{month}} {{year}}`
- 显示当前年份的完整日历:
`cal -y`
- 不要突出显示今天并显示跨越日期的3个月
`cal -h -3 {{month}} {{year}}`
- 显示当前年份中特定月份之前的2个月和之后的3个月
`cal -A 3 -B 2 {{month}}`
- 显示儒略日从1开始从1月1日起编号
`cal -j`