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