d
date(1) | date(1) |
NAME
date - display or set the date and time
SYNOPSIS
date
date
date
date
DESCRIPTION
The date command displays or sets the current
Options
date recognizes the following option:
Slowly adjust the time by sss.fff seconds (fff represents fractions of a second). This adjustment can be positive or negative. The system's clock will be sped up or slowed down until it has drifted by the number of seconds speci®ed.
Formats
The date command has two forms for displaying the date and time and one form for setting them. date
Display the current date and time. The output is the same as for the %c formatting directive for all languages except the C default language. See Formatting Directives and EXAMPLES below.
date
Display the current date and time according to formatting directives speci®ed in format, which is a string of zero or more formatting directives and ordinary characters. If it contains blanks, enclose it in apostrophes or quotation marks.
See Formatting Directives below.
All ordinary characters are copied unchanged into the output string.
The output string is always terminated with a newline character.
If + is speci®ed and format is omitted, only a newline is output.
date
Set the
If you include the
The numeric argument is interpreted left to right in
mmMonth number
ddDay number in the month
hhHour number
cc Century minus one
yy Last two digits of the year number
If you attempt to set the date backwards, date generates the warning,
Section 1−164 | − 1 − |