<?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: TZ= in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011371#M771328</link>
    <description>As I close this thread allow me to reiterate; at no time should anyone consider    &lt;BR /&gt;the TZ= information a viable means of date/time calculation.                       &lt;BR /&gt;                                                                                   &lt;BR /&gt;I can only assume that the lack of additional input is a confirmation of the above.&lt;BR /&gt;                                                                                   &lt;BR /&gt;Thank you James and A. Clay for at least attempting a reasonable explanation for   &lt;BR /&gt;what I was asking.                                                                 &lt;BR /&gt;                                                                                   &lt;BR /&gt;Regards,                                                                           &lt;BR /&gt;                                                                                   &lt;BR /&gt;-dl                                                                                &lt;BR /&gt;</description>
    <pubDate>Wed, 01 Nov 2006 17:28:23 GMT</pubDate>
    <dc:creator>Dave La Mar</dc:creator>
    <dc:date>2006-11-01T17:28:23Z</dc:date>
    <item>
      <title>TZ=</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011367#M771324</link>
      <description>Note that I am fully aware of caljd.sh and put it to good use.&lt;BR /&gt;&lt;BR /&gt;My inquiry is concerning the failure of TZ= following the time change this past weekend.&lt;BR /&gt;&lt;BR /&gt;We recently upgraded a couple of machines from 11.0 to 11.11 and noticed that 11.11 came &lt;BR /&gt;&lt;BR /&gt;with the new tz table for the 2007 date changes for time.&lt;BR /&gt;&lt;BR /&gt;On our 11.0 machines TZ=PST8PDT+24 date +%A wields yesterday's full name day of the week.&lt;BR /&gt;&lt;BR /&gt;It had worked on the 11.11 machines as well until this past weekend.&lt;BR /&gt;&lt;BR /&gt;Now, I am not advocating using TZ= as I have described. I am simply curious as to whay this would&lt;BR /&gt;stop working. &lt;BR /&gt;&lt;BR /&gt;Of course if I set the offset to 24, it appears to wroke as previously noted, &lt;BR /&gt;&lt;BR /&gt;i.e. TZ=PST24PDT date +%A.&lt;BR /&gt;&lt;BR /&gt;Has anyone encountered this?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;DL</description>
      <pubDate>Mon, 30 Oct 2006 19:12:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011367#M771324</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2006-10-30T19:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: TZ=</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011368#M771325</link>
      <description>Hi Dave:&lt;BR /&gt;&lt;BR /&gt;The use of the following is commonly seen to compute tomorrow's date: &lt;BR /&gt;&lt;BR /&gt;# TZ=GMT-24 date +%m/%d/%y &lt;BR /&gt;&lt;BR /&gt;...and correspondingly, yesterdays's date: &lt;BR /&gt;&lt;BR /&gt;# TZ=GMT+24 date +%m/%d/%y &lt;BR /&gt;&lt;BR /&gt;Eurpopeans,living around the Prime Meridian are the "lucky" ones who can use +-24 hours to exactly compute yesterday or tommorrow *including* the correct time. &lt;BR /&gt;&lt;BR /&gt;As noted by the man pages for 'environ(5)', the offset is the value that must be added to local time to arrive at UTC (GMT). The offset takes the format hh[:mm[:ss]]&lt;BR /&gt;where 'hh' is any value from 0 through 23. The optional minutes (mm) and seconds (ss) fields are a value from 0 through 59. The hour field is required. If offset is preceded by a -, the time zone is east of the Prime Meridian. A + preceding offset indicates that the time is one that is west of the Prime Meridian.&lt;BR /&gt;&lt;BR /&gt;Thus, you should beware when trying to perform such trickery as you describe.&lt;BR /&gt;&lt;BR /&gt;A rigorous, safe method to find the day as it was 24-hours ago in your local timezone is:&lt;BR /&gt;&lt;BR /&gt;# perl -MPOSIX -le 'print strftime(%A,localtime(time-(24*60*60)))'&lt;BR /&gt;&lt;BR /&gt;You can use any of the 'strftime(3C)' formatting directives you want.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 30 Oct 2006 20:17:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011368#M771325</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-10-30T20:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: TZ=</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011369#M771326</link>
      <description>You have been relying upon a feature that works more or less by accident --- and not across all flavors of UNIX. Using Perl or (caljd.sh) is a much more robust and portable solution. A careful reading of the environ man page explains that the offset must be in the range of 0-23 and you are violating that. It just so happens that your trick works in a few timezones.</description>
      <pubDate>Mon, 30 Oct 2006 22:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011369#M771326</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-10-30T22:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: TZ=</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011370#M771327</link>
      <description>Thank you James. You obviously read my question and are explicit in the explanation. &lt;BR /&gt;&lt;BR /&gt;As I stated "I do not condone using this method for date calculations."&lt;BR /&gt;&lt;BR /&gt;My curiosity is in why it changed in execution.&lt;BR /&gt;&lt;BR /&gt;Thank you for the input.&lt;BR /&gt;&lt;BR /&gt;A. Clay -&lt;BR /&gt;No question in the value of using caljd.sh. (For those forum'ers that have not used it, it is strongly suggested to investigate.)&lt;BR /&gt;My question was straight forward and granted, yes, any use of this in the past may have been pure luck in results. Thus my insistance on not advocating it.&lt;BR /&gt;&lt;BR /&gt;Hopefully, further input on this will be even more enlightening on the change in execution.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;-dl</description>
      <pubDate>Tue, 31 Oct 2006 11:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011370#M771327</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2006-10-31T11:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: TZ=</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011371#M771328</link>
      <description>As I close this thread allow me to reiterate; at no time should anyone consider    &lt;BR /&gt;the TZ= information a viable means of date/time calculation.                       &lt;BR /&gt;                                                                                   &lt;BR /&gt;I can only assume that the lack of additional input is a confirmation of the above.&lt;BR /&gt;                                                                                   &lt;BR /&gt;Thank you James and A. Clay for at least attempting a reasonable explanation for   &lt;BR /&gt;what I was asking.                                                                 &lt;BR /&gt;                                                                                   &lt;BR /&gt;Regards,                                                                           &lt;BR /&gt;                                                                                   &lt;BR /&gt;-dl                                                                                &lt;BR /&gt;</description>
      <pubDate>Wed, 01 Nov 2006 17:28:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tz/m-p/5011371#M771328</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2006-11-01T17:28:23Z</dc:date>
    </item>
  </channel>
</rss>

