HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to know if tztab is correctly handling tim...
Operating System - HP-UX
1833861
Members
1957
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-18-2004 09:23 AM
03-18-2004 09:23 AM
Hi,
After looking at the man page for the date program, I saw a reference for tztab. I looked at /usr/lib/tztab and it appears to be correct. Is there a program to run that will test tztab. I don't want my crons to fail when the time changes or reports to display the wrong times.
Thanks in advance,
Steve
After looking at the man page for the date program, I saw a reference for tztab. I looked at /usr/lib/tztab and it appears to be correct. Is there a program to run that will test tztab. I don't want my crons to fail when the time changes or reports to display the wrong times.
Thanks in advance,
Steve
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2004 09:30 AM
03-18-2004 09:30 AM
Solution
Well, first of all (assuming that you have reasonably new patches for cron appropriate to your OS), you don't need to do anything about your crontab entries. Cron handles the time changes unambiguously. Secondly, there is no single timezone for a given UNIX environment (except by accident); every user (actually every process) could have a unique TZ.
Still to answer your question, use the attached Perl script, dst.pl. dst.pl -n will display the next time change according to the current TZ setting. It use the underlying strftime() function that the date command uses; so if it works, your reports should work as well.
Still to answer your question, use the attached Perl script, dst.pl. dst.pl -n will display the next time change according to the current TZ setting. It use the underlying strftime() function that the date command uses; so if it works, your reports should work as well.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2004 09:31 AM
03-18-2004 09:31 AM
Re: How to know if tztab is correctly handling time change?
As far as I know tztab should work correctly. If there has been manual changes made, then these could be a problem. Don't forget the system actually runs from GMT (UTC) with an adjustment made from the local $TZ
Check that the entries are correct with your TZ and also that the /etc/profile and /etc/TIMEZONE have the correct entries. cron get's it time from the local $TZ of the server, or from the script or program that is being run.
Check that the entries are correct with your TZ and also that the /etc/profile and /etc/TIMEZONE have the correct entries. cron get's it time from the local $TZ of the server, or from the script or program that is being run.
Anyone for a Mutiny ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2004 09:33 AM
03-18-2004 09:33 AM
Re: How to know if tztab is correctly handling time change?
Oh, I should add:
TZ=CST6CDT dst.pl -n
TZ=EST5EDT dst.pl -n
will check the Central and Eastern (US) Timezones. Note the whitespace before the dst.pl command.
TZ=CST6CDT dst.pl -n
TZ=EST5EDT dst.pl -n
will check the Central and Eastern (US) Timezones. Note the whitespace before the dst.pl command.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP