date - print or set the system date and time
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
d
\bda
\bat
\bte
\be [-u] [-s new-date] [+FORMAT] [MMDDhhmm[[CC]YY][.ss]]
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
This manual page documents the GNU version of d
\bda
\bat
\bte
\be. d
\bda
\bat
\bte
\be
with no arguments prints the current time and date (in the
format of the `%c' directive described below). If given
an argument that starts with a `+', it prints the current
time and date in a format controlled by that argument,
which has the same format as the format string passed to
the `strftime' function. Except for directives that start
with `%', characters in that string are printed unchanged.
%r time, 12-hour (hh:mm:ss [AP]M)
%T time, 24-hour (hh:mm:ss)
%X locale's time representation (%H:%M:%S)
%Z time zone (e.g., EDT), or nothing if no time zone
%a locale's abbreviated weekday name (Sun..Sat)
%A locale's full weekday name, variable length (Sun-
%b locale's abbreviated month name (Jan..Dec)
%B locale's full month name, variable length (Jan-
%c locale's date and time (Sat Nov 04 12:02:33 EST
%j day of year (001..366)
%U week number of year with Sunday as first day of
%W week number of year with Monday as first day of
%x locale's date representation (mm/dd/yy)
%y last two digits of year (00..99)
If given an argument that does not start with `+', d
\bda
\bat
\bte
\be
sets the system clock to the time and date specified by
that argument. The argument must consist entirely of dig-
its, which have the following meaning:
CC first two digits of year (optional)
YY last two digits of year (optional)
Only the superuser can set the system clock.
O
\bOP
\bPT
\bTI
\bIO
\bON
\bNS
\bS
-_
\bs _
\bn_
\be_
\bw-_
\bd_
\ba_
\bt_
\be
Set the time and date to _
\bn_
\be_
\bw-_
\bd_
\ba_
\bt_
\be, which can be in
almost any common format. It can contain month
names, timezones, `am' and `pm', etc.
-_
\bu Print or set the time and date in Universal Coordi-
nated Time (also known as Greenwich Mean Time)
instead of in local (wall clock) time.