Articles

change of timezone in date command

August 29, 2006 at 23:07:55
Specs: Solaris -9, Intel(R) Pentium(R) 4 300

how to change date from GMT to US Mountatin time zone using date command in solaris.
by
sateesh


See More: change of timezone in date command

Report •


#1
September 1, 2006 at 06:58:54

You can't change the timezone with the date command. You can set your TZ environment variable to do this.

You can do this in your shell's initialization file, by setting or for the whole system (in Solaris 10) in /etc/default/init, by setting:
TZ=US/Mountain

See also the man pages for TIMEZONE and (if you're on an x86 system) rtc, that is:

man TIMEZONE
and
man rtc

or by google searching for these man pages on docs.sun.com, with a search like:

TIMEZONE site:docs.sun.com

I hope this helps.


Report •
Related Solutions


Ask Question