- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- daylight saving time
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
03-28-2006 09:07 AM
03-28-2006 09:07 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 09:14 AM
03-28-2006 09:14 AM
SolutionTZ=EST5EDT dst.pl
TZ=CST6CDT dst.pl
TZ=MST7MDT dst.pl
You many need to change to "shebang" line from #!/usr/bin/perl to something like "#!/opt/perl5/bin/perl" or create a softlink from your perl install bin to /usr/bin/perl.
Because this Perl scripts uses the same underlying libc functions as do the standard commands like date, if this work then the other utilities work as well.
- Tags:
- dst.pl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 09:28 AM
03-28-2006 09:28 AM
Re: daylight saving time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 09:39 AM
03-28-2006 09:39 AM
Re: daylight saving time
The bottom line it that this is a method that uses the same standard routines that UNIX commands and programs use -- so if this works and displays the expected times then the others also work when that time comes.
Bear in mind that your UNIX box does not actually change time; it simply counts seconds since 00:00:00 1-Jan-1970 UTC. What changes is the way these epoch seconds are displayed. HP-UX is unique in that the time transitions are controlled by a textfile, /usr/lib/tztab. Man tztab for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 09:49 AM
03-28-2006 09:49 AM
Re: daylight saving time
e.g.
TZ=GMT0 dst.pl -d
STAT=${?}
echo "Status = ${STAT}"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 09:58 AM
03-28-2006 09:58 AM
Re: daylight saving time
txovo# perl /tmp/tz.pl
Sun Apr 02 01:59:59 CST 2006 --> Sun Apr 02 03:00:00 CDT 2006
Sun Oct 29 01:59:59 CDT 2006 --> Sun Oct 29 01:00:00 CST 2006
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 09:59 AM
03-28-2006 09:59 AM
Re: daylight saving time
txovo# perl /tmp/tz.pl
Sun Apr 02 01:59:59 CST 2006 --> Sun Apr 02 03:00:00 CDT 2006
Sun Oct 29 01:59:59 CDT 2006 --> Sun Oct 29 01:00:00 CST 2006
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 10:06 AM
03-28-2006 10:06 AM
Re: daylight saving time
Answer to last question: Yes.
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
03-28-2006 10:10 AM
03-28-2006 10:10 AM
Re: daylight saving time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 10:31 AM
03-28-2006 10:31 AM
Re: daylight saving time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 10:37 AM
03-28-2006 10:37 AM
Re: daylight saving time
thanks for the info.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2006 10:43 AM
03-28-2006 10:43 AM