1833052 Members
2681 Online
110049 Solutions
New Discussion

Re: date / time change

 
Jade Bulante
Frequent Advisor

date / time change

We have an hpux 11.00 server and I would like to find out how to change the time. Is there any way to have the system automatically do it when it hits daylight savings?

Please advice.


5 REPLIES 5
John Poff
Honored Contributor

Re: date / time change

Hi Jade,

Your HP-UX (and Linux, since we are in the Linux forum) server should handle the daylight savings time change automatically. If you look at your timezone environment variable, 'echo $TZ', you should see something like:

EST5EDT

if you are in the Eastern US time zone. You can configure your system for any time zone in the world, and you can even configure it not to use daylight savings time if you live in an area where it isn't recognized.

JP
Darrell Allen
Honored Contributor

Re: date / time change

John's answer is right. man 1 date says:

The date command displays or sets the current HP-UX system clock date and time. Since the HP-UX system operates in Coordinated Universal Time (UTC), date automatically converts to and from local standard or daylight/summer time, based on your TZ environment variable.


All UNIX like OSes that I know of do likewise. You don't have to worry about it.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
John Poff
Honored Contributor

Re: date / time change

Hi again,

I attended a meeting this morning about our monthly scheduled maintenance for next Saturday. We have an IBM mainframe, and those guys mentioned that they will have to IPL their system at 2:00am on Sunday the 27th to handle the DST change. I reminded them that while they are doing that, I'll be at home sound asleep! ;)

JP
Justo Exposito
Esteemed Contributor

Re: date / time change

Hi Jade,

Note that you can go into problems if you have a database software in your boxes running with the logs activates.

Regards,

Justo.
Help is a Beatiful word
Marton Ferenc
Advisor

Re: date / time change

I think the automatically time change is managed by an NTP server. You can configure an NTP server where you get the date and time exactly.
hits: xntpd, ntpq and ntpdate.
J5000