- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to test Daylight Savings Time settings for 200...
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
03-03-2006 08:31 AM
03-03-2006 08:31 AM
Hello HP-UX Experts,
I have just entered my changes for the 2007 Daylight Savings Time rules in /usr/lib/tztab. Is there a way to test these changes without actually changing the system date? I am running Oracle and I have read that it is very bad to change the date backwards.
Thanks,
Bob
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 08:38 AM
03-03-2006 08:38 AM
SolutionExecute the attached Perl script, dst.pl.
Without arguments, it works on the current year. With -y 2007, it will display the exact second before and after the transition.
e.g.
dst.pl -y 2007
Invoke as dst.pl -u for full usage.
The good news is that this Perl code uses the same underlying libc date routines that all the UNIX commands do so that if this works, everything will work as planned.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 08:41 AM
03-03-2006 08:41 AM
Re: How to test Daylight Savings Time settings for 2007?
TZ=EST5EDT dst.pl -y 2007
TZ=CST6CDT dst.pl -y 2007
TZ=MST7MDT dst.pl -y 2007
TZ=PST8PDT dst.pl -y 2007
Oh, and if you have Perl installed on Windows it works there as well. I'm gonna bet that them there Windows boxes will take more than just a tztab change (iffn that had one) to fix themselves.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 09:20 AM
03-03-2006 09:20 AM
Re: How to test Daylight Savings Time settings for 2007?
That's a very useful scripts!
Thanks,
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 12:50 AM
04-10-2006 12:50 AM
Re: How to test Daylight Savings Time settings for 2007?
Does anyone know the actual dates that we will be doing this? I believe the 'spring ahead' is in March of 2007... what about the 'fall beihind' date?
thanks,
Cheryl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2006 01:06 AM
04-10-2006 01:06 AM
Re: How to test Daylight Savings Time settings for 2007?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 03:57 AM
01-18-2007 03:57 AM
Re: How to test Daylight Savings Time settings for 2007?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 08:41 AM
01-18-2007 08:41 AM
Re: How to test Daylight Savings Time settings for 2007?
Nov 3, 2007 2 am
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2007 08:44 AM
01-18-2007 08:44 AM
Re: How to test Daylight Savings Time settings for 2007?
March 12 2 am and Nov 4 2 am...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2007 09:46 AM
02-15-2007 09:46 AM
Re: How to test Daylight Savings Time settings for 2007?
DST On: Mar 11, 2007 at 01:59:59 + one second
and
DST Off:Nov 4, 2007 at 01:59:59 + 1
I run the script (on windows) and get:
C:\temp\FX-Down>273155.pl -y 2007
Sun Mar 11 01:59:59 Mountain Standard Time 2007 --> Sun Mar 11 03:00:00 Mountain Standard Time 2007
Sun Nov 04 01:59:59 Mountain Standard Time 2007 --> Sun Nov 04 01:00:00 Mountain Standard Time 2007
The info is correct except the 3/11 03:00 still shows "Mountain Standard Time"
don't know perl well enough to figure out why.
Thanks for the script. I also posted a java script to check java at:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1094092
--Garry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 01:52 AM
02-26-2007 01:52 AM
Re: How to test Daylight Savings Time settings for 2007?
How would you replace the "our" in line 184, it's deprecated on some of my systems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 02:18 AM
02-26-2007 02:18 AM
Re: How to test Daylight Savings Time settings for 2007?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 05:28 AM
02-26-2007 05:28 AM
Re: How to test Daylight Savings Time settings for 2007?
$ more main.C
#include
#include "String.h"
#include "Time.h"
int main(int ac, char **av)
{
Time tm;
// March 11, 2007 - day that new savings time takes effect.
tm = Time(2007, Time::march, 11, Place::eastern()) +
Duration::hours(12);
cout << tm.make_string("%D %T %Z", Place::eastern())
<< "\n\n";
}
Build:
$ aCC main.C -I/opt/aCC/include -I/opt/aCC/include_std -I/opt/aCC/include/SC
-L /opt/aCC/lib -l++ -o my2k7
Execution:
On a non C++ patched system - BAD
$ my2k7
03/11/07 12:00:00 EST
On a patched system - GOOD
$ my2k7
03/11/07 13:00:00 EDT
BTW, not sure if you are aware, you share the name with one of the all time chess legends !! :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2007 09:12 PM
02-26-2007 09:12 PM
Re: How to test Daylight Savings Time settings for 2007?
-L /opt/aCC/lib -l++
You should only be using -I/opt/aCC/include/SC. The rest of the -Is and -L should be removed.
I.e. you should never specify default aCC paths.