date(1) | date(1) |
do you really want to run time backwards?[yes/no]
Type yes or the equivalent for your locale to set the clock backwards; anything else to cancel the command.
When date is used to set the date, a pair of date change records is written to the ®le /var/adm/wtmp .
(XPG4 only.) No warning is generated if date is set backwards.
Formatting Directives
The following formatting directives, shown without the optional ®eld width and precision speci®cation, are replaced by the indicated characters. If a directive is not one of the following, the result is unde®ned.
The output for digits, characters, and words depends on the language/locale settings. See Environment Variables in EXTERNAL INFLUENCES below.
The examples assume that the date command was executed on Wednesday, January 12, 1994 at 7:45:58 p.m. Paci®c Standard Time, using the C default language.
%a Abbreviated weekday name. For example, Wed. %A Full weekday name. For example, Wednesday. %b Abbreviated month name. For example, Jan.
%B Full month name. For example, January.
%c Current date and time representation. For example, Wed Jan 12 19:45:58 1994.
%C Century (the year divided by 100 and truncated to an integer) as a
%d Day of the month as a
%e Day of the month as a
%E Combined Emperor/Era name and year.
%H Hour
%M Minute as a decimal
%N Emperor/Era name. %o Emperor/Era year.
%p Equivalent of either AM or PM. For example, PM. %R Time as %H:%M
%S Second as a
%t Tab character.
%u Weekday as a
%U Week number of the year (Sunday as the ®rst day of the week) as a
%V Week number of the year (Monday as the ®rst day of the week) as a
− 2 − | Section 1−165 |
d