⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 date.1

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1
字号:
.\" SCCSID: @(#)date.1	3.2	9/7/88.TH date 1.SH Namedate \- print date and time.SH Syntax.B date[\-c | \-u] [ \fB+\fPformat ] [[yy[mm[dd]]]hhmm[.ss][\-[\-]tttt][z]].SH Description.NXR "date command".NXR "time command" "printing".NXR "time" "setting".NXR "date" "printing".NXR "date" "setting"If no argument is given,or if the argument begins with \fB+\fP,the current date and time are printed.Otherwise, the current date is set.The first.I mmis the month number;\fR.I ddis the day number in the month;\fR.I hhis the hour number (24 hour clock);\fRthe second.I mmis the minute number;\fR.I .ssthe second;\fR-[-]\fItttt\fRis the minutes west of Greenwich;\fRa positive number means your time zone is west of Greenwich(for example, North and South America)and a negative number means it is east of Greenwich (forexample Europe);.I zis a one letter code indicating the dst correction mode(n=none, u=usa, a=australian, w=western europe, m=middle europe,e=eastern europe);.I yyis the last 2 digits of the year number and is optional.The following example sets the date to Oct 8, 12:45 \s-1AM\s+1:.EXdate\| 10080045.EEThe current year is the default if no year is mentioned.The system operates in \s-1GMT\s0.The.PN datetakes care of the conversion to and fromlocal standard and daylight time..PPIf the argument begins with \fB+\fP,the output of.PN dateis under the control of the user.The format for the output is similar to that ofthe first argument to.MS printf 3s .All output fields are of fixed size (zero paddedif necessary).Each field descriptor is preceded by \fB%\fPand is replaced in the output byits corresponding value.A single \fB%\fP is encoded by \fB%%\fP.All othercharacters are copied to the output without change.The string is always terminated with a new-line character..SH Options.TP.B \-cPerform operations using Coordinated Universal Time (UCT) insteadof the default local time. The UCT does not use leap seconds soUCT is the same as GMT..TP.B \-uPerform operations using Greenwich Mean Time (GMT) instead of thedefault local time..TP.B + \fIformat\fRThe following is a list of field Descriptors that can be used in theformat (Note: date exits after processing format information) :.NXR "date command" "field descriptors".RS 10.TP 5.B %aLocale's abbreviated weekday name.TP .B %ALocale's full weekday name.TP .B %bLocale's abbreviated month name.TP .B %BLocale's full month name.TP .B %cLocale's date and time representation.TP .B %dDay of month as a decimal number (01\-31).TP .B %DDate (%m/%d/%y).TP .B %hLocale's abbreviated month name.TP .B %HHour as a decimal number (00\-23).TP .B %IHour as a decimal number (01\-12).TP .B %jDay of year (001\-366).TP .B %mNumber of month (01\-12).TP .B %MMinute number (00\-59).TP .B %nNewline character.TP .B %pLocale's equivalent to AM or PM.TP .B %rTime in AM/PM notation.TP .B %SSecond number (00\-59).TP .B %tTab character.TP .B %TTime (%H/%M/%S).TP .B %UWeek number (00\-53), Sunday as first day of week.TP .B %wWeekday number (0[Sunday]\-6).TP .B %WWeek number (00\-53), Monday as first day of week.TP .B %xLocale's date representation.TP .B %XLocale's time representation.TP .B %yYear without century (00\-99).TP .B %YYear with century.TP .B %ZTimezone name, no characters if no timezone.TP .B %%%.RE.SH Examples.NXR(e) "date command"The following command line.EXdate\| +%m/%d/%y.EEgenerates the following output.EX04/02/89.EEThe following command line.EXdate\| +"DATE: %m/%d/%y%nTIME: %H:%M:%S".EEgenerates the following output.EXDATE: 04/02/89.brTIME: 14:45:05.EEThe quotes (") are necessary because the \fIformat\fR contains blankcharacters. Use single quotes (') to prevent interpretation by theshell..SH Diagnostics.NXR(c) "date command" "diagnostics".TP .5i.B "Failed to set date: Not owner"You are not the super-user and you tryed to change the date..NT CAUTION	 .NXR(c) "date command" "multiuser mode and"Do not change the date while the system isrunning in multiuser mode..NE.SH RestrictionsAn attempt to set a date to before 1/1/1970 will result in the date being set to 1/1/1970..SH Files/dev/kmem

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -