Managing System Information, Processes, and Performance in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014

How to Manually Set a System's Date and Time

  1. Become an administrator.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Provide 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 1-8  Manually Setting a System's Date and Time

The following example shows how to use the date command to manually set a system's date and time.

# date
Monday, September 13. 2010 02:00:16 PM MDT
# date 0921173404
Thu Sep 17:34:34 MST 2010