Operating System - HP-UX
1833757 Members
2502 Online
110063 Solutions
New Discussion

Change time and time zone on the fly

 
SOLVED
Go to solution
Joe Profaizer
Super Advisor

Change time and time zone on the fly

I know I can change the time on the fly, but how can I (or can I) change the time zone? I'd like to change the time zone (from CST to EST) without a reboot.

Using HP-UX 11.11

Please advise.
5 REPLIES 5
Ashwani Kashyap
Honored Contributor
Solution

Re: Change time and time zone on the fly

set_parms will do it .
But for time zone it will require a reboot .

For more information do man set_parms .

You should also investigate the affect on your application or databases before changin time or time zone .
Mister_Z
Frequent Advisor

Re: Change time and time zone on the fly

Joe,

have a look to a similar thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=248753

Regards,
I work for HP
blal
Frequent Advisor

Re: Change time and time zone on the fly

Hi

You can change the timezone value by

set_parms timezone.(see man page of set_parms).

System may require reboot after change .Please check it .

Also see the file /etc/TIMEZONE whis is read by /etc/profile .

Regds,
Baiju.
Live and let live.
Jeff Schussele
Honored Contributor

Re: Change time and time zone on the fly

Hi Joe,

Time is always kept in Zulu time. All you change is how it's displayed.

So you just use $TZ to display as you see fit.

The default if no $TZ is set is kept in the
/etc/TIMEZONE file.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Patrick Wallek
Honored Contributor

Re: Change time and time zone on the fly

If you just want to change it for a particular user you can do:

# export TZ=EST5EDT