Saturday, November 08, 2008

How to change date on Solaris

In Solaris servers to have a correct time is so critical.
To change the time and date, the following examples can be used:

example1# date 1234.56

sets the current time to 12:34:56.


example2# date -u 010100302000

sets the date to January 1st, 12:30 am, 2000, which will be
displayed as

Thu Jan 01 00:30:00 GMT 2000

example3# date 10080045

sets the date to Oct 8, 12:45 a.m.

0 comments: