HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to know that my time will change correctly thi...
Operating System - HP-UX
1833777
Members
1816
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
10-28-2005 04:44 AM
10-28-2005 04:44 AM
Hello Experts:
I have users in Eastern, Central, and Pacific timezones. How can I know that my times will change correctly this weekend? I have looked at /usr/lib/tztab for these timezones and it looks okay but is there a command that will test this? Date doesn't seem to have an option for this.
TIA,
John
I have users in Eastern, Central, and Pacific timezones. How can I know that my times will change correctly this weekend? I have looked at /usr/lib/tztab for these timezones and it looks okay but is there a command that will test this? Date doesn't seem to have an option for this.
TIA,
John
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 04:48 AM
10-28-2005 04:48 AM
Solution
The time really doesn't change. All UNIX boxes in the known universe simply count seconds since the Earth was created on 1-Jan-1970 00:00:00 UTC. What does change is the way these seconds are displayed. The attached Perl script will do the trick and because it uses the same underlying functions (localtime(), strftime()) that other utilities like date use, it's a very good test.
"dst.pl -n" will do the trick. Invoke as "dst.pl -u" for full usage.
"dst.pl -n" will do the trick. Invoke as "dst.pl -u" for full usage.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 04:51 AM
10-28-2005 04:51 AM
Re: How to know that my time will change correctly this weekend?
Oh, I should add to test for your TZ's, do this:
TZ=EST5EDT dst.pl -n
TZ=CST6CDT dst.pl -n
TZ=PST8PDT dst.pl -n
dst.pl -n will test for the default (actually the current) setting of TZ.
TZ=EST5EDT dst.pl -n
TZ=CST6CDT dst.pl -n
TZ=PST8PDT dst.pl -n
dst.pl -n will test for the default (actually the current) setting of TZ.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2005 08:27 AM
10-28-2005 08:27 AM
Re: How to know that my time will change correctly this weekend?
Hi A. Clay:
Thanks. This is a great script! I especially like the -d option which shows the amount of time left until the time change.
Thanks,
John
Thanks. This is a great script! I especially like the -d option which shows the amount of time left until the time change.
Thanks,
John
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