DATE(1) — UNIX Programmer’s Manual
NAME
date − print and set the date
SYNOPSIS
date [ yymmddhhmm [ .ss ] ]
DESCRIPTION
If no argument is given, the current date and time are printed. If an argument is given, the current date is set. The character yy is the last two digits of the year; the first mm is the month number; dd is the day number in the month; hh is the hour number (24 hour system); the second mm is the minute number; .ss is optional and represents the seconds. For example:
date 10080045
sets the date to Oct 8, 12:45 AM. The year, month and day may be omitted, as the current values are the defaults. The system operates in GMT. Date handles the conversion to and from local standard and daylight time.
FILES
/usr/adm/wtmp to record time-setting
SEE ALSO
DIAGNOSTICS
‘No permission’ if you are not the super-user and attempt to change the date; ‘bad conversion’ if the date set is syntactically incorrect.
BUGS
The system attempts to maintain the date in a format closely compatible with VMS. VMS, however, uses local time (rather than GMT) and does not understand daylight savings time; thus, if you use both UNIX and VMS, VMS will be running on GMT.
4th Berkeley Distribution — %W%%Q%%Y%