cal 中文man頁面
名字
cal - 顯示一個日歷
總覽
cal [-mjy ] [月份 [年份 ] ]
描述
Cal 顯示一個簡單的日歷.. 如果沒有指定參數(shù), 則顯示當前月份. 選項如下所列:
- -m
- 顯示星期一作為一周的***天.. (缺省為星期日.)
- -j
- 顯示儒略歷的(Julian)日期 (以 1 為基的天數(shù), 從 1 月 1 日開始計數(shù)) .
- -y
- 顯示當前年份的日歷..
一個單一的參數(shù)指定要顯示的年份 (1 - 9999) ; 注意年份必須被完全地指定: ``cal 89 '' 不會 顯示1989年的日歷. 兩個參數(shù)表示月份 (1 - 12) 和年份. 如果沒有指定參數(shù), 則顯示當前月份的日歷.
一年從Jan 1 (1 月 1 日) 開始.
格里高利歷法改革(Gregorian Reformation)被認為發(fā)生于 1752 年 9 月 3 日. 在此之前, 多數(shù)國家已經(jīng)認可這項改革(盡管有一些直到 20 世紀初才認可它). 那天之后的 10 天在這項改革被略去了, 所以那個月的日歷有點不太尋常.
歷史
一個 命令出現(xiàn)于第6版 AT&T UNIX.
#p#
NAME
cal - displays a calendar
SYNOPSIS
cal [-smjy13 ] [[ month ] year ]
DESCRIPTION
Cal displays a simple calendar. If arguments are not specified, the current month is displayed. The options are as follows:
- -1
- Display single month output. (This is the default.)
- -3
- Display prev/current/next month output.
- -s
- Display Sunday as the first day of the week. (This is the default.)
- -m
- Display Monday as the first day of the week.
- -j
- Display Julian dates (days one-based, numbered from January 1).
- -y
- Display a calendar for the current year.
A single parameter specifies the year (1 - 9999) to be displayed; note the year must be fully specified: ``cal 89 '' will not display a calendar for 1989. Two parameters denote the month (1 - 12) and year. If no parameters are specified, the current month's calendar is displayed.
A year starts on Jan 1.
The Gregorian Reformation is assumed to have occurred in 1752 on the 3rd of September. By this time, most countries had recognized the reformation (although a few did not recognize it until the early 1900's.) Ten days following that date were eliminated by the reformation, so the calendar for that month is a bit unusual.
HISTORY
A cal command appeared in Version 6 AT&T UNIX.