How to Manually Set the Date and Time of a System
Become an administrator.
See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.
- Set the new date and time.
$ date mmddHHMM[[cc]yy]
Verify that you have reset the date of your system correctly by using the date command with no options.
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.
Monday, September 13. 2010 02:00:16 PM MDT
# date 0921173404
Thu Sep 17:34:34 MST 2010