BSD 3 development
[unix-history] / usr / man / man1 / date.1
CommitLineData
e6817382
BJ
1.TH DATE 1
2.SH NAME
3date \- print and set the date
4.SH SYNOPSIS
5.B date
6.RB "[ yymmddhhmm [ " . "ss ] ]"
7.SH DESCRIPTION
8If no argument is given, the current date and time are printed.
9If an argument is given, the current date is set.
10.I yy
11is the last two digits of the year;
12the first
13.I mm
14is the month number;
15.I dd
16is the day number in the month;
17.I hh
18is the hour number (24 hour system);
19the second
20.I mm
21is the minute number;
22.BI . ss
23is optional and is the seconds.
24For example:
25.IP
26date 10080045
27.PP
28sets the date to Oct 8, 12:45 AM.
29The year, month and day may be omitted, the current
30values being the defaults.
31The system operates in GMT.
32.I Date
33takes care of the conversion to and from
34local standard and daylight time.
35.SH FILES
36/usr/adm/wtmp to record time-setting
37.SH SEE ALSO
38utmp(5)
39.SH DIAGNOSTICS
40`No permission' if
41you aren't the super-user and you try to change the date;
42`bad conversion' if the date set is syntactically incorrect.