File:  [Research Unix] / researchv10dc / man / adm / man1 / date.1
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.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.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.