<?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: Time change utility? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068097#M140063</link>
    <description>I've made some significant changes to the dst.pl script, to make it more flexible and usefull to me. &lt;BR /&gt;I hope you think the same !&lt;BR /&gt;&lt;BR /&gt;Give it a try !&lt;BR /&gt;&lt;BR /&gt;Best Regards, &lt;BR /&gt;Paulo Marques</description>
    <pubDate>Fri, 24 Oct 2003 15:59:41 GMT</pubDate>
    <dc:creator>Paulo Marques</dc:creator>
    <dc:date>2003-10-24T15:59:41Z</dc:date>
    <item>
      <title>Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068081#M140047</link>
      <description>Hello Forums Experts:&lt;BR /&gt;&lt;BR /&gt;I know that we in the U.S. change back to Standard Time on October 26th but does anyone know of a utility that will automatically determine when the time changes?&lt;BR /&gt;I've thought about doing something with the tztab file but before I start I would like to know if someone already has something that will work.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John Wolfe</description>
      <pubDate>Wed, 10 Sep 2003 19:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068081#M140047</guid>
      <dc:creator>John Wolfe_1</dc:creator>
      <dc:date>2003-09-10T19:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068082#M140048</link>
      <description>Your system will detect that if TZ variable set.&lt;BR /&gt;&lt;BR /&gt;You can also enable ntp to keep time exactly from your timezone.&lt;BR /&gt;&lt;BR /&gt;/etc/ntp.conf&lt;BR /&gt;&lt;BR /&gt;You can find a list of time servers at &lt;A href="http://www.ntp.org" target="_blank"&gt;http://www.ntp.org&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 10 Sep 2003 19:25:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068082#M140048</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-10T19:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068083#M140049</link>
      <description>I answered something similar a while back but it's not quite what you asked:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2d195fe8b250d71190080090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2d195fe8b250d71190080090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The downside to doing something with tztab is that it's an HP thing and not all flavors of UNIX have it. I vaguely remember doing something 4 or 5 years ago (in Perl, I think) that might be close. I'll see if I can hunt it up.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Sep 2003 19:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068083#M140049</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-10T19:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068084#M140050</link>
      <description>The time on the machine doesn't ever change.  The systems keeps UTC time.  The value of the TZ variable determines what timezone the system thinks it is in (for cron / at jobs, etc.) and TZ is also used to determine how the time is displayed to you when you use the date command.&lt;BR /&gt;&lt;BR /&gt;The system knows, via the /usr/lib/tztab file, when to display the time differently.  There really isn't anything you need to worry about on your system as far as the time change goes.</description>
      <pubDate>Wed, 10 Sep 2003 19:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068084#M140050</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-09-10T19:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068085#M140051</link>
      <description>Thanks, Steven. I know that NTP will keep the time set correctly. I also know than cron and at will work even when the time changes. NTP won't tell me when the next change will occur. I'm really looking for something that will automatically read the tztab file and display when the time will change.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John Wolfe&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Sep 2003 19:33:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068085#M140051</guid>
      <dc:creator>John Wolfe_1</dc:creator>
      <dc:date>2003-09-10T19:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068086#M140052</link>
      <description>A. Clay: That was close but not really what I want. I really am looking for something that will read the tztab file and print the dates and times when the time changes.&lt;BR /&gt;&lt;BR /&gt;Patrick: I know that the system will handle the time changes automatically. This is needed for user notification.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;John Wolfe</description>
      <pubDate>Wed, 10 Sep 2003 19:42:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068086#M140052</guid>
      <dc:creator>John Wolfe_1</dc:creator>
      <dc:date>2003-09-10T19:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068087#M140053</link>
      <description>Hi John,&lt;BR /&gt;&lt;BR /&gt;Shells are dependent on the TZ variable &amp;amp; if it's a set with a ?STX?DT like CST6CDT then it knows about the time change. &lt;BR /&gt;For anything else (daemons?) that don't have $TZ, then kernel parameters timezone &amp;amp; dst take care of this.&lt;BR /&gt;&lt;BR /&gt;But if you want to figure the day of the month then /usr/lib/tztab file ought to give you all you need to pass to Clay's date hammer (caljd.sh or caljd.pl) to tell you what day of month it would be. You should just have to pass it the year, month, &amp;amp; day of month range.&lt;BR /&gt;&lt;BR /&gt;So for this year you pass it 2003, October &amp;amp; 25-31 using the proper parms (sorry I don't know them off the top of my head) &amp;amp; it will give you the day. Then the hour (3) &amp;amp; minute (0) are fixed.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 10 Sep 2003 19:51:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068087#M140053</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-09-10T19:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068088#M140054</link>
      <description>Oops, I guess you might have to pass it the day of week as well - Sunday (0).&lt;BR /&gt;&lt;BR /&gt;But I see that Clay doesn't think it can do this. I'm crestfallen - the MIGHTY data hammer cannot do this? Tell me it ain't so!&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Wed, 10 Sep 2003 19:56:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068088#M140054</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-09-10T19:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068089#M140055</link>
      <description>Okay Steve:&lt;BR /&gt;&lt;BR /&gt;I found it. It's called dst.pl. I found that I made a small change in 2001 so that Windows could use it as well (if you have one one the free Perls for Windows -- &lt;A href="http://www.activeperl.com)." target="_blank"&gt;www.activeperl.com).&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Invoke as dst.pl -u for usage but here are a few examples.&lt;BR /&gt;&lt;BR /&gt;dst.pl&lt;BR /&gt;will display the time changes for the current year and current TZ.&lt;BR /&gt;&lt;BR /&gt;TZ=EST5EDT dst.pl -y 2004&lt;BR /&gt;will display the time changes for 2004 in Eastern (US) time.&lt;BR /&gt;&lt;BR /&gt;If using a TZ that does not change (e.g. GMT0) then nothing is printed and a non-zero result is returned.&lt;BR /&gt;&lt;BR /&gt;You can change the output format to something more to your liking but this should be very close. Note: It does use tztab but not directly. Perl relies upon the underlying ctime() and strftime() functions so if they use tztab (again, not all UNIX's have it), this script implicitly uses it. That is why it will even work on Windows what don't know nothing about no /usr/lib/tztab. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Sep 2003 20:07:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068089#M140055</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-10T20:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068090#M140056</link>
      <description>One thing John:&lt;BR /&gt;&lt;BR /&gt;You may need to change the "shbang" to point to something other than /usr/bin/perl.&lt;BR /&gt;e.g.&lt;BR /&gt;#!/opt/perl/bin -w&lt;BR /&gt;&lt;BR /&gt;although I always soft link whatever is the "real" Perl executable to /usr/bin/perl.&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Sep 2003 20:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068090#M140056</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-10T20:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068091#M140057</link>
      <description>Hi (again) John:&lt;BR /&gt;&lt;BR /&gt;In looking over the code, I discovered a small (and harmless but embarassing booboo). The -y year parameter should really have subtracted 1900 since the time functions expect years since 1900 but because of the kindness of the libc routines, 2004 (instead of 104) worked. It worked fine under HP-UX and Windows but there might be a problem under other versions. This new versions corrects that possible error.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Sep 2003 20:33:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068091#M140057</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-10T20:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068092#M140058</link>
      <description>Hi Guys:&lt;BR /&gt;&lt;BR /&gt;A. Clay's script worked great. I'll download his new version but the old version seemed perfect to me.&lt;BR /&gt;&lt;BR /&gt;It actually displays this:&lt;BR /&gt;Sun Apr 06 01:59:59 PDT 2003 --&amp;gt; Sun Apr 06 03:00:00 PST 2003&lt;BR /&gt;Sun Oct 26 01:59:59 PST 2003 --&amp;gt; Sun Oct 26 01:00:00 PDT 2003&lt;BR /&gt;&lt;BR /&gt;Thanks for all your help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John Wolfe&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Sep 2003 20:47:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068092#M140058</guid>
      <dc:creator>John Wolfe_1</dc:creator>
      <dc:date>2003-09-10T20:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068093#M140059</link>
      <description>Hi John:&lt;BR /&gt;&lt;BR /&gt;I'm glad you were able to use the script but there seems to be a problem in your output:&lt;BR /&gt;&lt;BR /&gt;Sun Apr 06 01:59:59 PDT 2003 --&amp;gt; Sun Apr 06 03:00:00 PST 2003 &lt;BR /&gt;Sun Oct 26 01:59:59 PST 2003 --&amp;gt; Sun Oct 26 01:00:00 PDT 2003 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;***** SHOULD BE *****&lt;BR /&gt;&lt;BR /&gt;Sun Apr 06 01:59:59 PST 2003 --&amp;gt; Sun Apr 06 03:00:00 PDT 2003 &lt;BR /&gt;Sun Oct 26 01:59:59 PDT 2003 --&amp;gt; Sun Oct 26 01:00:00 PST 2003 &lt;BR /&gt;&lt;BR /&gt;Was this a typo that reversed the PST/PDT's or did you possibly have an incorrect TZ setting PDT8PST rather than the correct PST8PDT or (horrors) do I have a bug?&lt;BR /&gt;&lt;BR /&gt;Clay&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Sep 2003 21:02:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068093#M140059</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-10T21:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068094#M140060</link>
      <description>Hi Clay,&lt;BR /&gt;&lt;BR /&gt;The problem was my bad typing. The display was correct. I should have copied and pasted the display but I typed it in instead. The script is fine.&lt;BR /&gt;&lt;BR /&gt;Regards and thanks, &lt;BR /&gt;John &lt;BR /&gt;</description>
      <pubDate>Wed, 10 Sep 2003 21:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068094#M140060</guid>
      <dc:creator>John Wolfe_1</dc:creator>
      <dc:date>2003-09-10T21:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068095#M140061</link>
      <description>For accuracy, it should be noted that timezones have nothing to do with astronomy but are 100% political. This means that tztab (or whatever mechanism is used in other opsystems) may be incorrect until every country has been polled to see how they will handle daylight saving this year (or next). In the US, Indiana has a strange policy. And some countries may use half-hour (central Australia) boundaries. HP-UX is particularly simple to keep in step with the politics of timezones as new rules and/or new zones can simply be added to the tztab file.</description>
      <pubDate>Thu, 11 Sep 2003 01:35:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068095#M140061</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-09-11T01:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068096#M140062</link>
      <description>Thanks Bill H. for your always insightful comments.&lt;BR /&gt;&lt;BR /&gt;I have just finished a script which automatically emails my users and displays the time change data with a notice that all normally scheduled jobs will continue to function without change. I combined A. Clay's earlier answer with his dst.pl script to get just the right approach. &lt;BR /&gt;&lt;BR /&gt;I continue to be amazed at the level of knowledge to be found in the Forums. Often, I can better and faster answers here than from our paid support contracts.&lt;BR /&gt;&lt;BR /&gt;Thanks to everyone who responded.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John Wolfe</description>
      <pubDate>Thu, 11 Sep 2003 15:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068096#M140062</guid>
      <dc:creator>John Wolfe_1</dc:creator>
      <dc:date>2003-09-11T15:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: Time change utility?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068097#M140063</link>
      <description>I've made some significant changes to the dst.pl script, to make it more flexible and usefull to me. &lt;BR /&gt;I hope you think the same !&lt;BR /&gt;&lt;BR /&gt;Give it a try !&lt;BR /&gt;&lt;BR /&gt;Best Regards, &lt;BR /&gt;Paulo Marques</description>
      <pubDate>Fri, 24 Oct 2003 15:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-change-utility/m-p/3068097#M140063</guid>
      <dc:creator>Paulo Marques</dc:creator>
      <dc:date>2003-10-24T15:59:41Z</dc:date>
    </item>
  </channel>
</rss>

