|
Home Page
|
info is a hypertext-linked documentation system that is distributed with Linux. The text below is a copy of the documentation for the date command.
`date': Print or set system date and time
=========================================
`date' with no arguments prints the current time and date, in the
format of the `%c' directive (described below). Synopses:
date [OPTION]... [+FORMAT]
date [-u|--utc|--universal] [ MMDDHHMM[[CC]YY][.SS] ]
If given an argument that starts with a `+', `date' prints the
current time and date (or the time and date specified by the `--date'
option, see below) in the format defined by that argument, which is the
same as in the `strftime' function. Except for directives, which start
with `%', characters in the format string are printed unchanged. The
directives are described below.
* Menu:
* Time directives:: %[HIklMprsSTXzZ]
* Date directives:: %[aAbBcdDhjmUwWxyY]
* Literal directives:: %[%nt]
* Padding:: Pad with zeroes, spaces (%_), or nothing (%-).
* Setting the time:: Changing the system clock.
* Options for date:: Instead of the current time.
* Examples of date:: Examples.