- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Day light saving
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
05-28-2008 05:20 AM
05-28-2008 05:20 AM
Day light saving
I need to implement DST for the first time but cannot get to know what is tztab and how works.
As far I know. In dst, time is advances 1 hour and after some time it is fall back to 1 hour.
Does tztab changes local system time and increment 1 hour and then decrement 1 hour after date specified in the file.
Could any one help me in this matter.
or give me any example of this.
regards
Farrukh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 05:34 AM
05-28-2008 05:34 AM
Re: Day light saving
> Does tztab changes local system time and increment 1 hour and then decrement 1 hour after date specified in the file.
Well not tztab itself. The kernel changes the time based on the tztab settings. The string that you set in /etc/TIMEZONE is the one that is used to find the tztab section with the same heading.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 05:37 AM
05-28-2008 05:37 AM
Re: Day light saving
The manpages for 'tztab(4)' and 'cron(1M)' offer a good description of how to read the '/usr/lib/tztab' file and how it works.
The real time (in epoch sedconds) never changes. It constantly increments. What changes is the positive or negative offset of your *local* time from universal time (UTC or GMT if you prefer).
You establish a valid 'TZ' value in '/etc/TIMEZONE'. This is read by '/etc/profile' during login to propagate it to your login shell. Users can also set there own TZ values as necessary in their own login profiles. Again, the real time does *not* change; only the offset of local time from it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 06:03 AM
05-28-2008 06:03 AM
Re: Day light saving
The tztab file just contains the rules for changing the conversion offset between UTC and your local timezone. It documents the current _and past_ DST transition rules, so that the system can, for example, automatically calculate the correct number of hours between current time and any past timestamp in any known time zone.
The tztab file is located in /usr/lib/tztab and it contains all the DST rules known to HP at the time of release of that particular HP-UX version. Sometimes some countries change their DST rules, and HP usually issues patches that add the new changes to the tztab file.
Use the "man tztab" command to get more detailed information about the tztab file.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2008 09:02 AM
05-28-2008 09:02 AM
Re: Day light saving
As mentioned, tztab(4) and /usr/lib/tztab contain lots of info.