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. |
Verify that you have reset your system's date correctly by checking your system's date and time using the date command with no options.
The output should show a date and time that matches that of the other system.
The following example shows how to use date to manually set a system's date and time. Thu Mar 6 09:12:00 MST 1997
# date Thu Mar 6 09:10:20 MST 1997 # date 030609121997 |