Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
Enter the new date and time.
# date mmddHHMM[[cc]yy] |
Month, using two digits.
Day of the month, using two digits.
Hour, using two digits and a 24-hour clock.
Minutes, using two digits.
Century, using two digits.
Year, using two digits.
See the date(1) man page 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 Wed Mar 3 14:04:19 MST 2004 # date 0121173404 Thu Jan 21 17:34:34 MST 2004 |