date(1)
NAME
date − print and set the date
SYNTAX
date [ −u ] [ time ]
DESCRIPTION
If no time argument is given, the date command prints the current date and time. If a time argument is given, the date command sets the current date and time to the specified time. The time argument has the format: yymmddhhmm.ss. The 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 is the seconds. For example:
date 10080045
This example sets the date to Oct 8, 12:45 AM. The year, month and day may be omitted, the current values being the defaults. The system operates in GMT. The date command takes care of the conversion to and from local standard and daylight time. The −u flag causes date to set and print the date and time in GMT without converting to local time.
DIAGNOSTICS
If you aren’t the superuser and you try to change the date, “No permission”. If the date set is syntactically incorrect, “bad conversion”.
FILES
/usr/adm/wtmp to record time-setting