V10/man/man1/date.1

Compare this file to the similar file:
Show the results in this format:

.TH DATE 1
.CT 1 time_man sa_nonmortals inst_info 
.SH NAME
date \- print or set the date
.SH SYNOPSIS
.B date
.RB "
[
.I yymmddhhmm
[
.I " . "ss
]
]
.I "
.SH DESCRIPTION
If no argument is given, the current date and time are printed.
If an argument is given and the user is
the super-user, the current date is set.
.I yy
is the last two digits of the year;
the first
.I mm
is the month number;
.I dd
is the day number in the month;
.I hh
is the hour number (24 hour system);
the second
.I mm
is the minute number;
.BI . ss
is optional and is the seconds.
The year, month and day may be omitted, the current
values being the defaults.
The system operates in GMT.
.I Date
takes care of the conversion to and from
local standard and daylight time.
The options are
.TP
.B -u
Set or report GMT rather than local time.
.TP
.B -n
Set or report the date as the number of seconds since the
epoch.
.SH EXAMPLES
.TP
.L
date 10080045
Set the date to Oct 8, 12:45 AM, local time.
.SH FILES
.F /usr/adm/wtmp
to record time-setting
.SH SEE ALSO
.IR utmp (5)
.SH DIAGNOSTICS
`No permission'
if a non-super user tries to change the date;
`bad conversion'
if the date is invalid.