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

36 lines
765 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.netbsd.org/cal.1>。
- 显示当前月份的日历:
`cal`
- 显示特定年份的日历:
`cal {{year}}`
- 显示特定月份和年份的日历:
`cal {{month}} {{year}}`
- 使用 [j]ulian 天显示当前年份的完整日历从1月1日起的基数编号
`cal -y -j`
- [h]ighlight 今天并显示跨越日期的 [3] 个月:
`cal -h -3 {{month}} {{year}}`
- 显示当前年份中特定月份之前的 2 个月和之后的 3 个月:
`cal -A 3 -B 2 {{month}}`
- 显示指定月份之前和之后的特定数量的月份([C]ontext
`cal -C {{months}} {{month}}`
- 指定一周的开始 [d]ay0: 星期天1: 星期一,..., 6: 星期六):
`cal -d {{0..6}}`