- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Regarding Daylight saving time
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2006 01:14 AM
06-26-2006 01:14 AM
I came to know HP is not going to support for patches of HP-UX 10.2 version to the daylight saving time. Also we are not going to upgrade the OS. What can i do for this one.
If i modify /usr/lib/tztab is it sufficient? Should i change the UNIX system time for reflecting the daylight saving change. Also is HP-Unix time is GMT time? In my C programs i am able to see its using localtime function and tm_isdst flag of tm structure . I am not aware what i need to modify to reflect the daylight saving.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2006 01:21 AM
06-26-2006 01:21 AM
Re: Regarding Daylight saving time
Yes, HP-UX keeps time in GMT/UTC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2006 01:23 AM
06-26-2006 01:23 AM
Re: Regarding Daylight saving time
HP-UX release 10.20 is no longer supported. In the case you describe, however, that's not a problem. Simply fetch the latest 'tztab' patch (for instance, PHCO_34668 for 11.11) and replace the 10.20 version of '/usr/lib/tztab' from the patch's depot.
Having done this, plan a reboot. This will insure that all processes inherit the new ruleset.
Remember, all timekeeping is done in UTC (GMT). What a process or a user sees as the correct time is only an *offset* from UTC as dictated by the TZ variable.
The 'tm_isdst' element of the tm structure in C denotes whether or not the current time is under daylight savings or not.
The only modification that you need to make to anything is to update the '/usr/bin/tztab' rules.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2006 02:04 AM
06-26-2006 02:04 AM
Re: Regarding Daylight saving time
Use it like this:
dst.pl -y 2007
That will display the exact second before and after the time transitions.
You can test other TZ settings by:
TZ=CST6CDT dst.pl -y 2007
Invoke as dst.pl -u for full usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2006 02:18 AM
06-26-2006 02:18 AM
Re: Regarding Daylight saving time
1.You had Replied "The only modification that you need to make to anything is to update the '/usr/bin/tztab' rules"
I am unable to find the tztab file in /user/bin directory. Only in /usr/lib i am able to locate it. Hope the file i am going to modify is correct one.
ll /usr/lib/tztab
-r--r--r-- 1 bin bin 9376 Mar 9 1998 /usr/lib/tztab
Through which user or command i can modify this file since it doesn't have write permission ?What i need to modify in it? After modification do i need to restart the cron and application or reboot the machine?
Also I need not change unix system time(GMT) for this daylight saving change. Hope i am correct?
2. You had replied "HP-UX release 10.20 is no longer supported. In the case you describe, however, that's not a problem. Simply fetch the latest 'tztab' patch (for instance, PHCO_34668 for 11.11) and replace the 10.20 version of '/usr/lib/tztab' from the patch's depot"
I am going for the first solution of changing tztab file since I had not done any patch installation earlier in UNIX system. I am interested in knowing about it. In which URL i can download the PHCO_34668 patch and how do i install it and replace the 10.20 version f '/usr/lib/tztab' from the patch's depot. Also how to reboot the machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2006 02:36 AM
06-26-2006 02:36 AM
Re: Regarding Daylight saving time
Attached are the 4 contiguous US timezone entries with the necessary changes. Simply cut and paste them into your existing /usr/lib/tztab using vi.
# Pacific Standard Time, Pacific Daylight Time
PST8PDT
0 3 24-30 4 1970-1973 0 PDT7
0 3 6 1 1974 0-6 PDT7
0 3 22-28 2 1975 0 PDT7
0 3 24-30 4 1976-1986 0 PDT7
0 3 1-7 4 1987-2006 0 PDT7
0 3 8-14 3 2007-2038 0 PDT7
0 1 25-31 10 1970-1973 0 PST8
0 1 24-30 11 1974 0 PST8
0 1 25-31 10 1975-2006 0 PST8
0 1 1-7 11 2007-2038 0 PST8
# Eastern Standard Time, Eastern Daylight Time
EST5EDT
0 3 24-30 4 1970-1973 0 EDT4
0 3 6 1 1974 0-6 EDT4
0 3 22-28 2 1975 0 EDT4
0 3 24-30 4 1976-1986 0 EDT4
0 3 1-7 4 1987-2006 0 EDT4
0 3 8-14 3 2007-2038 0 EDT4
0 1 25-31 10 1970-1973 0 EST5
0 1 24-30 11 1974 0 EST5
0 1 25-31 10 1975-2007 0 EST5
0 1 1-7 11 2007-2038 0 EST5
# Central Standard Time, Central Daylight Time
CST6CDT
0 3 24-30 4 1970-1973 0 CDT5
0 3 6 1 1974 0-6 CDT5
0 3 22-28 2 1975 0 CDT5
0 3 24-30 4 1976-1986 0 CDT5
0 3 1-7 4 1987-2006 0 CDT5
0 3 8-14 3 2007-2038 0 CDT5
0 1 25-31 10 1970-1973 0 CST6
0 1 24-30 11 1974 0 CST6
0 1 25-31 10 1975-2006 0 CST6
0 1 1-7 11 2007-2038 0 CST6
# Mountain Standard Time, Mountain Daylight Time
MST7MDT
0 3 24-30 4 1970-1973 0 MDT6
0 3 6 1 1974 0-6 MDT6
0 3 22-28 2 1975 0 MDT6
0 3 24-30 4 1976-1986 0 MDT6
0 3 1-7 4 1987-2006 0 MDT6
0 3 8-14 3 2007-2038 0 MDT6
0 1 25-31 10 1970-1973 0 MST7
0 1 24-30 11 1974 0 MST7
0 1 25-31 10 1975-2006 0 MST7
0 1 1-7 11 2007-2038 0 MST7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2006 05:11 AM
06-26-2006 05:11 AM
Re: Regarding Daylight saving time
2. Pls correct if my understanding is wrong.
For daylight saving change, I need not change the UNIX system time(GMT) and only /usr/lib/tztab needs to be modified. All the C functions localtime .. and tm_isdst flag of tm structure will properly work after the modification of tztab file.
3. This program dst.pl is used only for testing the modification of /usr/lib/tztab. Pls correct me if i am wrong. Thanks a lot for the code.
4. Also is the HP-PATCH does the samething , modification of the /usr/lib/tztab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2006 05:19 AM
06-26-2006 05:19 AM
Solution1. No, you do not need to stop anything before modifying '/usr/lib/tztab'. You can restart 'cron' after the modification or arrange for a server reboot some time before the changes in the daylight saving rules are to take effect. The idea is simply that old processes need to be restarted to see the new rules.
2. That is correct. You only need to change the aforementioned file.
3. Clay's script is only for testing. It modifies nothing.
4. The patch I suggested is simply one way to obtain a newly updated, coherent set of timezone rules. It is certainly valid to update your existing file as suggested, too.
p.s. Yes, I inadvertantly wrote "/usr/bin/tztab' at the end of my first post but meant '/usr/lib/tztab' as I had correctly written at the beginning.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2006 05:53 AM
06-26-2006 05:53 AM
Re: Regarding Daylight saving time
why we need to reboot the machine before the changes in the daylight saving rules are to take effect. It should be done after the changes. Why it needs to be done before the changes? Also why application restart is not required?
2. The United States uses eight time zones. From east to west they are Atlantic Standard Time (AST), Eastern Standard Time (EST), Central Standard Time (CST), Mountain Standard Time (MST), Pacific Standard Time (PST), Alaskan Standard Time (AST), Hawaii-Aleutian Standard Time (HST), and Samoa standard time (UTC-11). View the standard time zone boundaries.
Clay had provided the 4 time zones to update in the file i.e Pacific Standard Time, Eastern Standard Time,Central Standard Time and Mountain Standard Time
I am able to find the details about other time zones.
1. ALASKAN - Not found in the /usr/lib/tztab file
2. ATLANTIC - Found in the /user/lib/tztab
3. HAWAII - Not found in the /usr/lib/tztab file
4. Samoa standard time - Not found in the /usr/lib/tztab file
I am unable to find ALASKAN ,HAWAII and Samoa in the tztab file. other than the list provided by clay i need to do the modification only in ATLANTIC and leave ALASKAN,HAWAII ,Samoa. Hope i am correct?
2. Daylight Saving Time begins at 2:00 a.m. local time on the first Sunday in April. On the last Sunday in October areas on Daylight Saving Time return to Standard Time at 2:00 a.m.
i am able to see the below entries in tztab file. why there is not an entry for 2:00 am
0 3 1-7 4 1987-2006 0 PDT7
0 1 25-31 10 1975-2006 0 PST8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2006 04:05 AM
06-27-2006 04:05 AM
Re: Regarding Daylight saving time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2006 04:28 AM
06-27-2006 04:28 AM
Re: Regarding Daylight saving time
I suggest that you stop asking questions and start doing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2006 09:13 PM
06-27-2006 09:13 PM
Re: Regarding Daylight saving time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2006 09:23 PM
06-27-2006 09:23 PM
Re: Regarding Daylight saving time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2006 11:28 PM
06-27-2006 11:28 PM
Re: Regarding Daylight saving time
TZ=BILLH5 date
TZ=PIGEON9 date
The TZ value is globally set for each login using the file /etc/TIMEZONE. You can edit tztab at any time and the result is immediate. Time never changes in HP-UX, it is always GMT (or UTC or Zulu). The TZ variable tells the kernel time/date libraries how to translate the time for programs and users. You can have dozens of different timezones on your system at the same time.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 01:49 PM
12-07-2006 01:49 PM
Re: Regarding Daylight saving time
Could anyone please explain how the file /usr/lib/tztab work in term of system? Also when changing, say from EST-10 to EST-10EDT, does the server need to reboot to take an effect for the system? If yes,Why/why not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 02:47 PM
12-07-2006 02:47 PM
Re: Regarding Daylight saving time
When you use any of the ctime(3C) functions that provide local vs GMT (UTC) time, libc reads tztab to determine the timezone and when DST starts. See tztab(4) and TZ under environ(5).
>Also when changing, say from EST-10 to EST-10EDT, does the server need to reboot to take an effect for the system?
The computer works in GMT time. So it doesn't matter what timezone you are in. Unfortunately there are all sorts of demons and logs that like to print out the local time. If the latter is important to you, you'll have to reboot if you can't restart them.
As to long running user applications, once libc reads tztab at the start, it doesn't read it again unless TZ has changed. (By putenv.) So these may have to be restarted too.
Since you can't assign points, it would have been better to open a new thread and point to this one.