BSD 4_2 development
[unix-history] / usr / man / man1 / date.1
CommitLineData
21836db6
C
1.TH DATE 1 "1 April 1983"
2.UC 4
3.SH NAME
4date \- print and set the date
5.SH SYNOPSIS
6.B date
7.RB "[ -u ] [ yymmddhhmm [ " . "ss ] ]"
8.SH DESCRIPTION
9If no arguments are given, the current date and time are printed.
10If a date is specified, the current date is set.
11The
12.I -u
13flag is used to display the date in GMT (universal) time.
14This flag may also be used to set GMT time.
15.I yy
16is the last two digits of the year;
17the first
18.I mm
19is the month number;
20.I dd
21is the day number in the month;
22.I hh
23is the hour number (24 hour system);
24the second
25.I mm
26is the minute number;
27.BI . ss
28is optional and is the seconds.
29For example:
30.IP
31date 10080045
32.PP
33sets the date to Oct 8, 12:45 AM.
34The year, month and day may be omitted, the current
35values being the defaults.
36The system operates in GMT.
37.I Date
38takes care of the conversion to and from
39local standard and daylight time.
40.SH FILES
41/usr/adm/wtmp to record time-setting
42.SH SEE ALSO
43utmp(5)
44.SH DIAGNOSTICS
45`Failed to set date: Not owner' if you try to change the date
46but are not the super-user.
47.SH BUGS
48The system attempts to keep the date in a format closely compatible
49with VMS. VMS, however, uses local time (rather than GMT) and does
50not understand daylight savings time. Thus if you use both UNIX
51and VMS, VMS will be running on GMT.