Enter the new date and time.
# date mmddHHMM[[cc]yy] |
mm |
Month, using two digits. |
dd |
Day of the month, using two digits. |
HH |
Hour, using two digits and a 24-hour clock. |
MM |
Minutes, using two digits. |
cc |
Century, using two digits. |
yy |
Year, using two digits. |
See date(1) for more information.
Verify that you have reset your system's date correctly by using the date command with no options.
The following example shows how to use the date command to manually set a system's date and time.
# date Thu Jun 21 13:59:15 MDT 2001 # date 0621141001 Thu Jun 21 14:10:00 MDT 2001 |