- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to know if time change will work this week...
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
03-31-2005 09:00 AM
03-31-2005 09:00 AM
I have looked at the tztab file on my system and it looks ok. Without changing the system date is there a way to know if the time change will work this weekend?
TIA,
John
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 09:04 AM
03-31-2005 09:04 AM
SolutionActually the time doesn't change just the way the time is displayed changes. If you want to test it, run the attached Perl script, dst.pl.
Run it like this: dst.pl -n or as dst.pl -u for full usage.
- Tags:
- dst.pl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 09:09 AM
03-31-2005 09:09 AM
Re: How to know if time change will work this weekend?
TZ=EST5EDT dst.pl -n
TZ=CST6CDT dst.pl -n
The good news is that this routine uses the same libc functions that the date command uses so that if the Perl script displays the correct transition, the date command and programs which use localtime(), strftime(), et al will work as well -- Trust me. It doesn't directly look at the tztab file ; it uses the functions that look at this file.
If you have one of the freely available Perl's for Windows boxes, it will even test them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 10:52 AM
03-31-2005 10:52 AM
Re: How to know if time change will work this weekend?
TIA,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 10:57 AM
03-31-2005 10:57 AM
Re: How to know if time change will work this weekend?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 11:31 AM
03-31-2005 11:31 AM
Re: How to know if time change will work this weekend?
Your script worked great and I did try it on a Windows server first!
Thanks again,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 11:38 AM
03-31-2005 11:38 AM
Re: How to know if time change will work this weekend?
What happens if the timezone variable is set to
something like GMT? Does your search still work
or does it hang? Just curious.
TIA,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 11:42 AM
03-31-2005 11:42 AM
Re: How to know if time change will work this weekend?
TZ=GMT0 dst.pl -n
echo ${?}
OR
you could simply display the usage via dst.pl -u and if you look, you might just find your answer.
I prefer Plan A myself because you never know, I might be lying to you in them there usage messages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2005 11:45 AM
03-31-2005 11:45 AM
Re: How to know if time change will work this weekend?
Duh! I feel really stupid. I had already output the usage and the answer was right there!
Stupidly yours truly,
John