System Administration Guide: Advanced Administration

ProcedureHow to Set a System's Date and Time Manually

  1. 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.

  2. 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.

  3. Verify that you have reset your system's date correctly by using the date command with no options.

Example 5–10 Setting a System's Date and Time Manually

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