Monday, April 2, 2007

Set Date and Time on Solaris

date mmddhhmmyy

The date command takes the syntax mmddhhmmyy, or “month day hour minute year”. You have to be superuser to set the time.

Example:
# date 0329092207
Thu Mar 29 09:22:00 PST 2007

To set the time to 5:43:15 PM (17:43:15) :
date 1743.15

To set the time to 9:05 AM:
date 0905

Related Titles

 
visitors since March 26 2007
©2007