- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Change clock backwards
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
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
10-18-2006 04:01 AM
10-18-2006 04:01 AM
Change clock backwards
I want to change system clock back an hour for daylight saving & turn off automatic change. environment is 11.11.
Q: how do i do this
THanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2006 04:11 AM
10-18-2006 04:11 AM
Re: Change clock backwards
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2006 04:13 AM
10-18-2006 04:13 AM
Re: Change clock backwards
There should be no need to perform this. Daylight Saving transitions are handled automatically and your perception of time is adjusted accordingly.
However, if this is really what you want to do, then:
1. Stop all databases (at least) and any other critical things that are dependent upon an ever-ticking (foward) clock.
2. Use the 'date' command to reset your time.
3. Run:
# /sbin/set_parms timezone
...and choose a TZ value that doesn't have a Daylight Saving shift. You can create your own (see the manpages for 'tztab(4)'.
4. Reboot the server to restart 'cron' and all of your processes using the newly modified timezone.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2006 04:40 AM
10-18-2006 04:40 AM
Re: Change clock backwards
But I gotta ask: Why go to so much trouble?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2006 04:53 AM
10-18-2006 04:53 AM
Re: Change clock backwards
Please note that HP-UX has a very simple method for handling timezone changes. The correct way to change the time is to modify /usr/lib/tztab. However, if you don't feel comfortable in learning about the format, then change the global TZ value in /etc/TIMEZONE. To remove the daylight saving adjustment, just remove the letters following the first number in the TZ value. For instance, EST5EDT would change to EST5. Do NOT make this change until you have shutdown your applications. Otherwise the time will appear to jump.
Once you have a TZ value with just 3 letters plus the offset number, no daylight saving adjustment will ever be made. While the system will run just fine, you have a big sysadmin job ahead, especially if your system provides or accepts data from other systems that have (or have not) been adjusted.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2006 05:35 AM
10-18-2006 05:35 AM
Re: Change clock backwards
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2006 05:37 AM
10-18-2006 05:37 AM
Re: Change clock backwards
To change the time (and/or date) with the 'date' command, do:
# date [-u] mmddhhmm[yy]
...see the manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2006 06:36 AM
10-18-2006 06:36 AM
Re: Change clock backwards
Thanks
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2006 06:50 AM
10-18-2006 06:50 AM
Re: Change clock backwards
Well, when you did 'date -u mmddhhmm' what did you specify?
Using 'date -u' means that your are setting or querying UTC (GMT) time.
Option-4 of 'set_parms' timezone should be "EST5" or 5-hours behind UTC.
Compare these:
# TZ=UTC date
# TZ=EST5 date
# TZ=EST5EDT date
Notice that there is a whitespace (blank and/or tab) character after the 'TZ' variable is set and before the date command. This format sets TZ *only* for the duration of the commandline, thereby allowing convenient testing.
You need to reset your server's UTC time to the *correct* value. You can obtain it here:
http://tycho.usno.navy.mil/cgi-bin/anim
Regards!
...JRF...