Go to main content

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

Exit Print View

Updated: January 2019
 
 

How to Manually Set the Date and Time of a System

  1. Become an administrator.

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

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

    For more information, see the date(1) man page.

  3. Verify that you have reset the date of your system correctly by using the date command with no options.
Example 8  Manually Setting the Date and Time of a System

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

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