1837112 Members
2808 Online
110112 Solutions
New Discussion

timezones

 
Rusty Sapper
Frequent Advisor

timezones

Does HPUX support a UTC timezone. I mean a universal time that is constant without Daylight Savings. At one point we were told to use GMT0 but then we were also told that GMT0 is subject to Daylight savings.

any timezone experts out there?

TIA

Rusty
3 REPLIES 3
Ross Martin
Trusted Contributor

Re: timezones

Time remains constant and never changes on HP-UX. It maintains time in
universal time (where there is no daylight savings time). Therefore, time
never changes, only the interpretation of time which is controlled by the tztab
file (man tztab).

To check the timezone that has been set on your system, enter:

# echo $TZ
EST5EDT

The echo command reflects the TZ variable which is defined in the TZTAB file --
located at /usr/lib/tztab.

EST = Eastern Standard Time (time zone name)
5 = 5 hours earlier than GMT or UTC (difference in hours from UTC --
fractional values are expressed in minutes preceded by a colon)
EDT = Eastern Daylight Time (name or abbreviation of the "Daylight Savings"
time zone)

The customer can manually change the timezone to GMT or UTC by:

# /etc/set_parms timezone

Select your geographical location (eg. 1 through 7)
Select item 12 (Unlisted time zone)

When prompted for entering a time zone -- enter: GMT0 (GMT ZERO in uppercase
which is also used for UTC).

A reboot is required to make the new time zone take effect.

Once the system reboots, the system is set to GMT or UTC. Use
the /etc/set_parms program to change back to your original time zone.

Hope that helps.

Ross
Rusty Sapper
Frequent Advisor

Re: timezones

So what you are saying is that using GTM0 will keep the server at UTC and not include any daylight savings?
Giri Sekar.
Trusted Contributor

Re: timezones

Hi:

Time remains constant and never changes on HP-UX. It maintains time in
universal time (where there is no daylight savings time). Therefore, time
never changes, only the interpretation of time which is controlled by the tztab
file (man tztab).

"USL" Unix as Second Language