- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Slewing time instead of one hour "fall"ing back
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
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
07-14-2006 04:57 AM
07-14-2006 04:57 AM
Slewing time instead of one hour "fall"ing back
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 05:08 AM
07-14-2006 05:08 AM
Re: Slewing time instead of one hour "fall"ing back
"01:59:59 CDT" is distinctly different from
"01:00:00 CST"; your are simply not being precise enough when you omit the timezone.
The best solution is to not shift the time at all and choose a TZ value that does not change. Doing a step change is not an option because you could easily have a situation in which transaction 101 occurs before transaction 100.
Your best options are therefore to:
1) modify your applications to include the TZ
or
2) choose a TZ that does not shift
Since you aren't going to do either of those, you are really left with 2 choices. Shutting down for hour or slewing the time. It will take several hours for time to slew that much --- during which your time will be wrong although internally consistant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 05:17 AM
07-14-2006 05:17 AM
Re: Slewing time instead of one hour "fall"ing back
"01:59:59 CST".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 05:45 AM
07-14-2006 05:45 AM
Re: Slewing time instead of one hour "fall"ing back
HP-UX only keeps time in UTC (aka, Zulu or GMT) and never changes time for Daylight Saving. Instead, standard Unix libraries honor the $TZ variable and translate the time to (political) timezones with adjustments for Daylight Saving where local politics defines the rules.
As Clay said, a well written program that requires a time stamp must be written with Daylight Saving provisions or better yet, use GMT for all program timestamps. date -u will return GMT as will: TZ=GMT0 date. If you set TZ in your program to TZ, the time will always be correct and will have no skips. You can then translate the time to show to humans in their local timezones.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2006 09:08 AM
07-14-2006 09:08 AM
Re: Slewing time instead of one hour "fall"ing back
I appreciate your comments - just preaching to the choir. I was hoping for a very creative "out the the box" solution that someone may have seen out in the field...