3 date \- print or set the date and time
5 \fBdate [\fB\-qsuS\fR] [\fB\-r\fI seconds\fR]
6 [[\fIMMDDYY\fR]\fIhhmm\fR[\fIss\fR]] [\fI+format\fR]\fR
19 .FL "\-q" "Read the date from \fIstdin\fR"
20 .FL "\-s" "Set the time (implicit for \fB\-q\fR or a date string)"
21 .FL "\-u" "Print the date as GMT"
22 .FL "\-S" "Date within Eternal September"
23 .FL "\-r" "Use this number of seconds instead of current time"
25 .EX "date" "Print the date and time"
26 .EX "date 0221921610" "Set date to Feb 21, 1992 at 4:10 p.m."
29 With the \fB\-q\fR flag or a numeric argument,
31 sets the GMT time and date.
33 refers to the month, day, and year;
35 refers to the hour, minute and second.
36 Each of the six fields must be exactly two digits, no more and no less.
38 always display the date and time, with the default format for the system.
39 The \fB\-u\fR flag request GMT time instead of local time.
40 A format may be specified with a + followed by a printf-like string with
41 the following options:
49 %H Decimal hour on 2 digits
50 %I Decimal hour modulo 12 on 2 digits
51 %M Decimal minute on 2 digits
52 %S Decimal seconds on 2 digits
54 %U Decimal week number, Sunday being first day of week
55 %W Decimal week number, Monday being first day of week
57 %Y Decimal year on 4 digits
59 %a Abbreviated name of the day
60 %b Abbreviated name of the month
61 %c Appropriate date & time (default format)
62 %d Decimal day of the month on 2 digits
63 %e Same as %d, but a space replaces leading 0
65 %j Decimal dey of the year on 3 digits
66 %m Decimal month on 2 digits
69 %r 12-hour clock time with AM/PM
70 %s Number of seconds since the epoch
72 %w Decimal day of the week (0=Sunday)
74 %y Decimal year on 2 digits