Set system time in Solaris

Contributor Icon Contributed by qmchenry Date Icon September 2, 2003  
Tag Icon Tagged: Solaris


To set the time to 5:43:15 PM (17:43:15), run this command as superuser:

date 1743.15

To set the time to 9:05 AM:

date 0905

Previous recipe | Next recipe |
 
  • Anonymous
    Your command would be a bad idea on a production system. Much better to use the -a option like this:

    date -a sss.fff

    so that the system slowly changes time. When you do it abruptly, the way you indicated, time-dependent processes can get hammered.

    Larry Sherwood
blog comments powered by Disqus