- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Getting the proper TZ/DST information on a cer...
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-10-2004 12:53 AM
05-10-2004 12:53 AM
I need to find an easy way to know in advance if a certain date will be a DST or not using shell scrips.
I know I could analyze tztab to get to it, but I was wondering if there's something faster to know for instance if 08/10/05 will be a METDST or a MET (if I'm in Europe) or whatever is my local TZ.
Thanks in advance !
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 01:26 AM
05-10-2004 01:26 AM
Re: Getting the proper TZ/DST information on a certain date
something like,
# echo $TZ
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 01:29 AM
05-10-2004 01:29 AM
Re: Getting the proper TZ/DST information on a certain date
Actually I would like to get information on a future date.
Let's say I want to know if 11/24/2038 will be a METDST or a MET.
$TZ wouldn't help being current TZ, which could be a different one by that time (I'm just talking DST).
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 01:50 AM
05-10-2004 01:50 AM
SolutionFor example:
dst.pl -y 2005 will display the time transitions for whatever value TZ is set to. It can also display the time left until the next transition.
Invoke as dst.pl -u for full usage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2004 02:12 AM
05-10-2004 02:12 AM
Re: Getting the proper TZ/DST information on a certain date
That's pretty useful stuff. I could extract the target year and compare epoch timestamps to verify if I'm already on a different TZ.
Good shot, thanks !
Mike