Go to main content

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

Exit Print View

Updated: April 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.4.

  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

    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 6  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