- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- simulated time change failed
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
11-01-2004 08:05 AM
11-01-2004 08:05 AM
my question is that why couldn't i simulate this time change on 10/29/04 ...below is what i did and it confused me
date (told me that it was 3pm on 10/29/04)
date 10310159 (moved time up to simulate)
date (told me that it was 1:59am on 10/31/04)
(waited ~2 minutes)
date (told me that it was 2:01am instead of what i expected to be 1:01am!?!)
i know the system counts seconds since 01/01/1970 at 00:00am and that date is depenedt on TZ, but i am not sure why i couldn't simulate the weekend fall back ahead of time
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 08:14 AM
11-01-2004 08:14 AM
Re: simulated time change failed
The results of the date command should if accepted without error message be reflected immediatly unless some other factor changes it back.
/var/adm/syslog/syslog.log may have key messages.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 08:36 AM
11-01-2004 08:36 AM
Re: simulated time change failed
also i had no errors in syslog.log and no errors when running the date commands!?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 09:05 AM
11-01-2004 09:05 AM
SolutionTake a look at the tztab man page & then at the /usr/lib/tztab file.
You'll see that for PST8PDT entry the following line is used
0 1 25-31 10 1975-2038 0 PST8
The key is the last field (#7) it defines what happens - i.e. the shift from deviation from UTC. In your case from 7 to 8 hours difference.
Also note field #2 - that's the hour that the change "starts". This means you should have set the time to 00:59 & then waited to see what the *next* minute after 01:59 displayed. It would have then been 01:00.
Also it may have been prudent to logout & back in to insure you pick up the current TZ value - just to be safe.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 03:09 PM
11-01-2004 03:09 PM
Re: simulated time change failed
In all cases, what happens in your login session affects nothing else on the system. Each user inherits TZ from their profile. Programs that start at bootup get TZ set from /etc/TIMEZONE.
HP-UX can't be bothered with all the politics surrounding timezones (which have nothing to do with astronomical time units) so TZ and tztab were designed to handle almost anything the politicians put together.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2004 09:18 AM
11-02-2004 09:18 AM
Re: simulated time change failed
thx in particular to jeff, the problem/mistake i made was to set the time to 1:59am instead of 0:59am ...even though the clock rolls back to 1:00am after reaching 2:00am the "trigger" is for the system to actually pass 1:00am first as referenced in the tztab file
there was no need to logout and log back in since the TZ value was not being modified at all