<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Day light saving time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968438#M417263</link>
    <description>Bill / clay  Thanks for all info.  I will give it a go this afternoon. Let you know how I go...(so there will probably be more questions....but hell, wont fall asleep!)  thanks&lt;BR /&gt;Maria</description>
    <pubDate>Mon, 20 Mar 2006 20:08:14 GMT</pubDate>
    <dc:creator>Peter Gillis</dc:creator>
    <dc:date>2006-03-20T20:08:14Z</dc:date>
    <item>
      <title>Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968430#M417255</link>
      <description>Hi,  Ux 11.11 v1  ;  RP2470&lt;BR /&gt;&lt;BR /&gt;Can someone tell me if there is a quick check that can be run on a system to see when the daylight savings time is going to kick in? Wanted to check this out considering daylight savings (in NSW, AUSTRALIA) is going to be a week later than usual due to a recent government ruling for the commonwealth games over here.&lt;BR /&gt;&lt;BR /&gt;thanks heaps&lt;BR /&gt;maria</description>
      <pubDate>Mon, 20 Mar 2006 17:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968430#M417255</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2006-03-20T17:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968431#M417256</link>
      <description>Does a hog like slop? Run this Perl script, dst.pl.&lt;BR /&gt;&lt;BR /&gt;You can invoke it as dst.pl -u for full usage but simply "dst.pl" will display the exact second before and after the time transition. You can check multiple TZ's by:&lt;BR /&gt;&lt;BR /&gt;TZ=CST6CDT dst.pl&lt;BR /&gt;TZ=MST7MDT dst.pl&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Mar 2006 17:52:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968431#M417256</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-20T17:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968432#M417257</link>
      <description>Oh, and because this Perl script uses the same underlying libc functions that the standard utilities like the date command use, if the Perl script works, everything that uses the standard functions will work as well.</description>
      <pubDate>Mon, 20 Mar 2006 17:54:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968432#M417257</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-20T17:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968433#M417258</link>
      <description>Shalom Maria,&lt;BR /&gt;&lt;BR /&gt;In most normal time zones, if the Timezone is set, the time will change on schedule.&lt;BR /&gt;&lt;BR /&gt;If your change is very recent, you may want to make sure you are up to date. There is a file you can use to override time zone changes. We have to use it to deal with the Knesset here not being able to agree year to year on the time switches.&lt;BR /&gt;&lt;BR /&gt;Also, though its really slight of hand, if you are connected to an ntp server, you have nothing to worry about.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 20 Mar 2006 18:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968433#M417258</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-03-20T18:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968434#M417259</link>
      <description>Thanks Clay and Steven.  Clay with the perl script, we dont actually have perl config'd so I will give that a go later today. Is that a big task? (yes, you are dealing with the really basic here!) You mention run the job with the TZ listed first...does that mean if the job is run without a tz listed it will ask for one during the running of the job?&lt;BR /&gt;&lt;BR /&gt;Steven, what is the name of the file. I believe this is a quite recent change, that is why I am checking.&lt;BR /&gt;&lt;BR /&gt;thanks again&lt;BR /&gt;Maria</description>
      <pubDate>Mon, 20 Mar 2006 19:18:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968434#M417259</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2006-03-20T19:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968435#M417260</link>
      <description>The file that pre-defines timezones is called /usrf/lib/tztab and you'll find a good man page for it along with the comments in the file itself. NOTE: timezones (as you are probably well aware) are political, and only loosely based on the rotation of the earth. NTP is a great tool as it can maintain the only time kept in HP-UX (which is UTC, aka GMT) very accurately (to a fraction of one second). It cannot, however, do anything about timezones.&lt;BR /&gt; &lt;BR /&gt;HP-UX uses a variable called TZ to define how to interpret UTC for a local user. The first place to start with timezones is the man page for environ (man environ). You'll see that you can use my own personal tiomezone called BILLH5:33:12 by doing something like this:&lt;BR /&gt; &lt;BR /&gt;TZ=BILLH5:33:12 date&lt;BR /&gt; &lt;BR /&gt;You'll see the time is displayed 5 hours, 33 mins and 12 seconds to the west of GMT and there is no Daylight Saving for summer. Of course, this is only an academic example, but shows that you can define any rule for a local timezone. Just set TZ as required.&lt;BR /&gt; &lt;BR /&gt;The US (like Australia) is changing Daylight Saving rules (remember the part about politics?) so a patch for tztab has been released but since adding your own timezone rules is just a matter of editing tztab, just use the man pages for tztab and environ.&lt;BR /&gt; &lt;BR /&gt;As far as Perl goes, you should have it already installed on your system. Check the version with perl -v (you need 5.xxxx to be current). Note that once you change tztab, the results are immediate. Although tricky to find (man date), if TZ is not set, you get this:&lt;BR /&gt; &lt;BR /&gt;"If TZ is not set or is set to the empty string, its default value is EST5EDT."&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Mar 2006 19:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968435#M417260</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-03-20T19:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968436#M417261</link>
      <description>As mentioned the file you want to modify is&lt;BR /&gt;/usr/lib/tztab. Unlike other flavors of UNIX, HP-UX is unuque in that the time changes are managed by this textfile. You can do the changes yourself OR you can install the newly released patch, PHCO_34342, that will make the changes for you. The Perl install is very straightforward and should really be a part of any UNIX box these days. You can swinstall it from any of the Application CD sets or from: &lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.8.7/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Languages/perl-5.8.7/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;One of the best features of Perl is that it is much more platform independent that most scripting languages. In fact, if you install one of the free Perls (e.g. &lt;A href="http://www.activestate.com)" target="_blank"&gt;www.activestate.com)&lt;/A&gt; on your Windowes box that same Perl script will tell you about your PC timechanges as well -- without modification. However, Windows is going to take more than a text editor to make it recognize the new time changes.&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Mar 2006 20:01:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968436#M417261</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-20T20:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968437#M417262</link>
      <description>Hi Maria:&lt;BR /&gt;&lt;BR /&gt;You should have Perl installed already as a part of a standard 11i release.  You can verify with:&lt;BR /&gt;&lt;BR /&gt;# swlist | grep -i perl&lt;BR /&gt;&lt;BR /&gt;# whereis perl&lt;BR /&gt;&lt;BR /&gt;You will probably find a Perl version installed in '/opt/perl'.  Ideally, You should have some version of 5.8 as shown when you do:&lt;BR /&gt;&lt;BR /&gt;# perl -v&lt;BR /&gt;&lt;BR /&gt;You may find a very old version of Perl in '/usr/contrib/bin'.  Ignore this one.&lt;BR /&gt;&lt;BR /&gt;If you need a current version of Perl installed, you can download a set of binaries for HP-UX and install them with the standard 'swinstall' from here:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL" target="_blank"&gt;http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In HP-UX, the rules for timezones are found in '/usr/lib/tztab'.  Have a look at the manpages for 'tztab(4)' for the manner in which the table should be interpreted.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-60127/tztab.4.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-60127/tztab.4.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Look too, at the 'cron(1M)' manpages for information on how 'cron' interprets the TZ environmental variable:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/B2355-60127/cron.1M.html" target="_blank"&gt;http://www.docs.hp.com/en/B2355-60127/cron.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Variables, as for instance 'TZ' can be set for the duration of a commandline only by declaring the variable and its value followed by whitespace (blanks, tabs) and the command:&lt;BR /&gt;&lt;BR /&gt;# TZ=EST5EDT date&lt;BR /&gt;# TZ=GMT date&lt;BR /&gt;&lt;BR /&gt;Very recently, patches for the standard 'tztab' have been released with daylight saving changes for the United States and Australia.&lt;BR /&gt;&lt;BR /&gt;For 11.0, use: PHCO_34266&lt;BR /&gt;&lt;BR /&gt;For 11.11 use: PHCO_34342&lt;BR /&gt;&lt;BR /&gt;For 11.23 use: PHCO_34375&lt;BR /&gt;&lt;BR /&gt;Should you have any systems running 10.20, you can simply replace its '/usr/lib/tztab' with one of the above, since there are no official patches released for that out-of-support release.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Mar 2006 20:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968437#M417262</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-20T20:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968438#M417263</link>
      <description>Bill / clay  Thanks for all info.  I will give it a go this afternoon. Let you know how I go...(so there will probably be more questions....but hell, wont fall asleep!)  thanks&lt;BR /&gt;Maria</description>
      <pubDate>Mon, 20 Mar 2006 20:08:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968438#M417263</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2006-03-20T20:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968439#M417264</link>
      <description>Hi (again) Maria:&lt;BR /&gt;&lt;BR /&gt;One more thing.  Once the modification has been made to the '/usr/lib/tztab' any new process started will fall under the new "rules". A restart of 'cron' would cover cron tasks.  New logins would execute 'login()' so the processes spawned by those would also abide by the new time changes. A reboot of the server sometime before the mandated time change would then align everything --- things that are running and things that are later scheduled to run.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Mar 2006 20:21:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968439#M417264</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-03-20T20:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968440#M417265</link>
      <description>Ok, Well I do already have perl installed - &lt;BR /&gt;# whereis perl&lt;BR /&gt;perl: /usr/contrib/bin/perl /opt/perl/bin/perl /opt/perl/man/man1/perl.1&lt;BR /&gt;&lt;BR /&gt;# swlist | grep -i perl&lt;BR /&gt;perl        B.5.6.1.F Perl Programming Language.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   &lt;BR /&gt;If I try to run Clay's script, this results:&lt;BR /&gt;&lt;BR /&gt;charon&amp;gt; # ./dst.pl                    &lt;BR /&gt;interpreter "/usr/bin/perl" not found &lt;BR /&gt;sh: ./dst.pl:  not found.             &lt;BR /&gt;charon&amp;gt; # dst.pl                      &lt;BR /&gt;sh: dst.pl:  not found.               &lt;BR /&gt;charon&amp;gt; #                 &lt;BR /&gt;(I am in the directory where I have Clay's script)&lt;BR /&gt;On looking at the script I can see the 1st line is stating a perl shell. I know I dont have that on our system.  So, does this look like perl has not been configured on our system?  I know this is really basic, apologies.&lt;BR /&gt;Maria&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Mar 2006 20:30:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968440#M417265</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2006-03-20T20:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968441#M417266</link>
      <description>The Perl script has a "shebang" that tells it to execute as /usr/bin/perl. Your will need to add a symbolic link such as:&lt;BR /&gt;ln -s /opt/perl5/bin/perl /usr/bin/perl ---&lt;BR /&gt;this is normally a good thing to do because /usr/bin should be in everyone's PATH.&lt;BR /&gt;&lt;BR /&gt;whem you install my Perl script make sure that you do a "chmod 755 dst.pl" so that the execute bit is set. When you do these two things then the script will execute as simply "dst.pl".</description>
      <pubDate>Mon, 20 Mar 2006 20:44:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968441#M417266</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-20T20:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968442#M417267</link>
      <description>You can do 1 of 2 things:&lt;BR /&gt;&lt;BR /&gt;1) Link /opt/perl/bin/perl to /usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;# ln -s /opt/perl/bin/perl /usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;2) Replace the #!/usr/bin/perl line in Clay's script with #!/opt/perl/bin/perl&lt;BR /&gt;&lt;BR /&gt;Either should allow you to run the script.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Mar 2006 20:47:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968442#M417267</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2006-03-20T20:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968443#M417268</link>
      <description>Clay/ patrick ... thanks heaps.&lt;BR /&gt;I have been able to run the dst.pl script, although I did have to put the ./ in front.&lt;BR /&gt;The output from the job was as follows:&lt;BR /&gt;&lt;BR /&gt;charon&amp;gt; # ./dst.pl                                            &lt;BR /&gt;Sun Mar 26 02:59:59 EDT 2006 --&amp;gt; Sun Mar 26 02:00:00 EST 2006 &lt;BR /&gt;Sun Oct 29 01:59:59 EST 2006 --&amp;gt; Sun Oct 29 03:00:00 EDT 2006 &lt;BR /&gt;&lt;BR /&gt;Looks as though this system set to change time at 2:59am back to 2:00am on Mar 26th. Reading it right?? (amazing!)&lt;BR /&gt;&lt;BR /&gt;I am thinking now that I would load up patch PHCO_34342 and then rerun this script, hopefully this would then have the correct date.&lt;BR /&gt;&lt;BR /&gt;Thank you so much every one.  You are some of the best!!&lt;BR /&gt;&lt;BR /&gt;Maria</description>
      <pubDate>Mon, 20 Mar 2006 21:28:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968443#M417268</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2006-03-20T21:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968444#M417269</link>
      <description>Yes, install the patch and then rerun the script. The only other "gotcha" is that if you are not going to reboot before the time transition, you should stop and restart the cron daemon to force it to reload tztab.</description>
      <pubDate>Mon, 20 Mar 2006 22:14:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968444#M417269</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-20T22:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968445#M417270</link>
      <description>Thanks Clay.  Perl script works a charm and the patch loaded no problems - now we are set for the 2nd of April.!&lt;BR /&gt;Maria</description>
      <pubDate>Mon, 20 Mar 2006 23:03:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968445#M417270</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2006-03-20T23:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Day light saving time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968446#M417271</link>
      <description>Everyone....thanks heaps.  The DST.pl script, and the DST patch PHCO_34342 have all done the trick.&lt;BR /&gt;Maria</description>
      <pubDate>Mon, 20 Mar 2006 23:46:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving-time/m-p/4968446#M417271</guid>
      <dc:creator>Peter Gillis</dc:creator>
      <dc:date>2006-03-20T23:46:40Z</dc:date>
    </item>
  </channel>
</rss>

