1841599 Members
3917 Online
110182 Solutions
New Discussion

setting the clock

 
Dan Hoover_1
New Member

setting the clock

How do I set the clock on HP-UX 11 with the recent time change from DST to EST.

TIA
Dan
5 REPLIES 5
HPP
Regular Advisor

Re: setting the clock

Edit the file /etc/TIMEZONE and change TIMEZONE to EST5EDT
Be Teachable
Rick Garland
Honored Contributor

Re: setting the clock

As root, enter the following:
date 200011090930
the year, month, day, hours, minutes.

A reboot is a good idea after this.

Check you TZ variable as well. This will display the time for the time zone you are in.
There is one in the kernel as well.

There are numerous posts regarding the TZ variable. Can do a SEARCH for them
f. halili
Trusted Contributor

Re: setting the clock

Changing the system time you may use:
# set_parms date_time

This wiil then run a script and will prompt you for the entries.

- fnhalili
derekh
HPP
Regular Advisor

Re: setting the clock

oops!!!
Change TZ to EST5EDT.

Be Teachable
Kofi ARTHIABAH
Honored Contributor

Re: setting the clock

By the way, make sure that if you are running any databases, you shut them down before you make any changes to the clock (with the date command) I tend to prefer to go to single user mode, then use the date command then reboot into multi-user mode. This is to protect the databases from going into recovery mode
nothing wrong with me that a few lines of code cannot fix!