- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Date change testing
Operating System - HP-UX
1761303
Members
3109
Online
108901
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
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
тАО02-04-2004 01:52 PM
тАО02-04-2004 01:52 PM
Date change testing
We have a problem which I am sure must be fairly common. We need to test that our software functions correctly for specific dates. For a complete test, we set the system date to a specific date and run the test. With our recent server consolidation, this becomes very difficult, as we do not want to affect other environments on the same server.
Is there a software product or other solution that will allow us to get a certain set of processes to see a different date from the rest? It would need to be able to fool Oracle and cron.
One solution would be v-pars, but it seems a pretty heavy-weight solution for what we want to do. Are there any other options?
Is there a software product or other solution that will allow us to get a certain set of processes to see a different date from the rest? It would need to be able to fool Oracle and cron.
One solution would be v-pars, but it seems a pretty heavy-weight solution for what we want to do. Are there any other options?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 02:23 PM
тАО02-04-2004 02:23 PM
Re: Date change testing
Ultimately all of these talk to the time() system call and there is only one system time. Your best bet to minimize the impact would be to shut down all other databases / applications except the one under test. You have just found one of the things that a Sandbox (as opposed to a Test environment) is made to do.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-04-2004 03:28 PM
тАО02-04-2004 03:28 PM
Re: Date change testing
If you are testing for Daylight Saving changes, you're in luck. HP-UX allows you to define *any* timezone you like. You can invent a new one, even use your own initials if you want (like Aho, Weinberger and Kernighan, aka, awk)! Seriously, all date/time on HP-UX is kept as GMT/Zulu and never jumps for Daylight Saving or timezones. Instead, a table, /usr/lib/tztab defines each timezone and the rules about time changes. System calls to ask for the current time go through the tztab entry for the current value of TZ. For example:
TZ=EST5EDT date
TZ=PST8PDT date
TZ=GMT date
So if your testing only involves Daylight Saving then use TZ to set a new timezone. If testing involves dates that are days or weeks in the past or future, then you'll need a separate machine as the date/time is a basic kernel service.
Bill Hassell, sysadmin
TZ=EST5EDT date
TZ=PST8PDT date
TZ=GMT date
So if your testing only involves Daylight Saving then use TZ to set a new timezone. If testing involves dates that are days or weeks in the past or future, then you'll need a separate machine as the date/time is a basic kernel service.
Bill Hassell, sysadmin
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP