<?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 set change in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517614#M366571</link>
    <description>First, a bit of background:&lt;BR /&gt;&lt;BR /&gt;Actually, the DST transition in Unix is not an one-time event, but a consequence of a conversion function that runs the same way each time a timestamp value is converted to human-readable local time.&lt;BR /&gt;&lt;BR /&gt;If you program a Unix system to add two hours to a timestamp of 2009-10-25 01:30 AM and print the result in human-readable form, and your system's default timezone is CET-1CETDST (as it should be for Central Europe), the following happens:&lt;BR /&gt;&lt;BR /&gt;1.) The system notices that the original timestamp does not have a timezone specified, and uses the default timezone instead.&lt;BR /&gt;&lt;BR /&gt;2.) The system checks /usr/lib/tztab data (that was read to memory when the program was started) and sees that 2009-10-25 01:30:00 AM is DST time.&lt;BR /&gt;&lt;BR /&gt;3.) The system converts the timestamp to UTC-equivalent time_t form. The result is  1256427000 (= seconds since 1970-01-01 00:00:00 UTC).&lt;BR /&gt;&lt;BR /&gt;4.) To add 2 hours, the system simply adds 2 * 60 * 60 = 7200 seconds to the time_t value.&lt;BR /&gt;The result is 1256434200.&lt;BR /&gt;&lt;BR /&gt;5.) This result is then converted back to human-readable form using the ctime() or localtime() function. /usr/lib/tztab data indicates this is supposed to be CET Standard time, so the non-DST conversion is applied. The output will be (if a default C locale is used):&lt;BR /&gt;&lt;BR /&gt;Sun Oct 25 02:30:00 CET 2009&lt;BR /&gt;&lt;BR /&gt;Note that the output is *not* ambiguous: it includes the timezone specifier which tells you whether the timestamp is DST or Standard time (CET for Standard and CETDST for DST time).&lt;BR /&gt;&lt;BR /&gt;If the output of the ctime() or localtime() system function is processed in an application and the application ignores the timezone specifier and then becomes confused by "ambiguous" times, the application has a bug and should be fixed.&lt;BR /&gt;&lt;BR /&gt;Note that *nothing* in the conversions listed above was dependent on whether the *current time* was Standard or DST. All the operations were based on the inputted timestamp and the system's timezone data only.&lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;&lt;BR /&gt;If your customer really wants to go through his suggested procedure, it will require stopping SAP twice:&lt;BR /&gt;&lt;BR /&gt;- First, you must restart SAP before the DST transition using a custom value in the TZ environment variable, to make the SAP processes keep using the UTC+2 offset through the actual DST transition. A suitable TZ value would probably be TZ=CETDST-2. &lt;BR /&gt;(Yes, the offset sign is inverted in the TZ variable. Blame POSIX.)&lt;BR /&gt;&lt;BR /&gt;Of course, a proper change management procedure requires testing this change in a test environment before applying it to a production SAP. It may be that it's already too late to do proper testing, as you don't have a spare weekend for testing end-of-week jobs...&lt;BR /&gt;&lt;BR /&gt;You should probably do the same thing to the cron daemon, if you have defined cron jobs related to SAP.&lt;BR /&gt;&lt;BR /&gt;- Second, you must stop SAP again in the afternoon after the DST transition, restore the TZ environment variable to the correct value, and restart SAP.&lt;BR /&gt;&lt;BR /&gt;Your customer's suggestion actually requires significantly more work than doing it the correct way.&lt;BR /&gt;&lt;BR /&gt; Note that changing the system's /etc/TIMEZONE is actually optional. The Unix system was originally designed to work with multiple timezones, e.g. with users all across the U.S.A using dial-up terminal connections to a server in a central location. &lt;BR /&gt;&lt;BR /&gt;By setting the TZ variable accordingly in the beginning of a session, each user could use applications and see all time values automatically converted to his/her local timezone. This feature still works as designed. By changing the TZ variable before starting a process, you can cause the process to use a different timezone/DST rules regardless of the system's default settings.&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Tue, 20 Oct 2009 22:22:50 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2009-10-20T22:22:50Z</dc:date>
    <item>
      <title>Time set change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517611#M366568</link>
      <description>Hello,&lt;BR /&gt;next wekend in CEt there'll be the hour change.&lt;BR /&gt;My customer has an Sap environment with hpux 11.31 server and he wants to change time set in the afternoon stopping and restarting SAP and not waiting till the 03:00 AM [the clock will be set to 02:00AM]. Well, how we can excluse the automatic time set that will be started at 03:00 AM CET? regards.&lt;BR /&gt;Alessandro</description>
      <pubDate>Tue, 20 Oct 2009 14:55:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517611#M366568</guid>
      <dc:creator>VIGNOLA,ALESSANDRO</dc:creator>
      <dc:date>2009-10-20T14:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Time set change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517612#M366569</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Daylight Saving adjustments are handled automatically and NO CHANGE in the system's time should need to be made.  The operating system (and any half-way intelligent) database should be tracking in UTC (Epoch seconds).  The UTC time does not change.  What changes is your _perception_ of local time and that is governed in HP-UX by your TZ setting.&lt;BR /&gt;&lt;BR /&gt;See the manpages for 'cron' for more information:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-60130/cron.1M.html" target="_blank"&gt;http://docs.hp.com/en/B2355-60130/cron.1M.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 20 Oct 2009 15:07:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517612#M366569</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-10-20T15:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time set change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517613#M366570</link>
      <description>James' explanation is very good.  Just want to add if you change the time as your customer suggests you will potentially be creating big problems.  Time synchronization will not work, additionally, UTC will be off which could create the problems your customer is trying to avoid</description>
      <pubDate>Tue, 20 Oct 2009 16:40:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517613#M366570</guid>
      <dc:creator>Larry Klasmier</dc:creator>
      <dc:date>2009-10-20T16:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Time set change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517614#M366571</link>
      <description>First, a bit of background:&lt;BR /&gt;&lt;BR /&gt;Actually, the DST transition in Unix is not an one-time event, but a consequence of a conversion function that runs the same way each time a timestamp value is converted to human-readable local time.&lt;BR /&gt;&lt;BR /&gt;If you program a Unix system to add two hours to a timestamp of 2009-10-25 01:30 AM and print the result in human-readable form, and your system's default timezone is CET-1CETDST (as it should be for Central Europe), the following happens:&lt;BR /&gt;&lt;BR /&gt;1.) The system notices that the original timestamp does not have a timezone specified, and uses the default timezone instead.&lt;BR /&gt;&lt;BR /&gt;2.) The system checks /usr/lib/tztab data (that was read to memory when the program was started) and sees that 2009-10-25 01:30:00 AM is DST time.&lt;BR /&gt;&lt;BR /&gt;3.) The system converts the timestamp to UTC-equivalent time_t form. The result is  1256427000 (= seconds since 1970-01-01 00:00:00 UTC).&lt;BR /&gt;&lt;BR /&gt;4.) To add 2 hours, the system simply adds 2 * 60 * 60 = 7200 seconds to the time_t value.&lt;BR /&gt;The result is 1256434200.&lt;BR /&gt;&lt;BR /&gt;5.) This result is then converted back to human-readable form using the ctime() or localtime() function. /usr/lib/tztab data indicates this is supposed to be CET Standard time, so the non-DST conversion is applied. The output will be (if a default C locale is used):&lt;BR /&gt;&lt;BR /&gt;Sun Oct 25 02:30:00 CET 2009&lt;BR /&gt;&lt;BR /&gt;Note that the output is *not* ambiguous: it includes the timezone specifier which tells you whether the timestamp is DST or Standard time (CET for Standard and CETDST for DST time).&lt;BR /&gt;&lt;BR /&gt;If the output of the ctime() or localtime() system function is processed in an application and the application ignores the timezone specifier and then becomes confused by "ambiguous" times, the application has a bug and should be fixed.&lt;BR /&gt;&lt;BR /&gt;Note that *nothing* in the conversions listed above was dependent on whether the *current time* was Standard or DST. All the operations were based on the inputted timestamp and the system's timezone data only.&lt;BR /&gt;&lt;BR /&gt;---------------&lt;BR /&gt;&lt;BR /&gt;If your customer really wants to go through his suggested procedure, it will require stopping SAP twice:&lt;BR /&gt;&lt;BR /&gt;- First, you must restart SAP before the DST transition using a custom value in the TZ environment variable, to make the SAP processes keep using the UTC+2 offset through the actual DST transition. A suitable TZ value would probably be TZ=CETDST-2. &lt;BR /&gt;(Yes, the offset sign is inverted in the TZ variable. Blame POSIX.)&lt;BR /&gt;&lt;BR /&gt;Of course, a proper change management procedure requires testing this change in a test environment before applying it to a production SAP. It may be that it's already too late to do proper testing, as you don't have a spare weekend for testing end-of-week jobs...&lt;BR /&gt;&lt;BR /&gt;You should probably do the same thing to the cron daemon, if you have defined cron jobs related to SAP.&lt;BR /&gt;&lt;BR /&gt;- Second, you must stop SAP again in the afternoon after the DST transition, restore the TZ environment variable to the correct value, and restart SAP.&lt;BR /&gt;&lt;BR /&gt;Your customer's suggestion actually requires significantly more work than doing it the correct way.&lt;BR /&gt;&lt;BR /&gt; Note that changing the system's /etc/TIMEZONE is actually optional. The Unix system was originally designed to work with multiple timezones, e.g. with users all across the U.S.A using dial-up terminal connections to a server in a central location. &lt;BR /&gt;&lt;BR /&gt;By setting the TZ variable accordingly in the beginning of a session, each user could use applications and see all time values automatically converted to his/her local timezone. This feature still works as designed. By changing the TZ variable before starting a process, you can cause the process to use a different timezone/DST rules regardless of the system's default settings.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Tue, 20 Oct 2009 22:22:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517614#M366571</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-10-20T22:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Time set change</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517615#M366572</link>
      <description>Hi,&lt;BR /&gt;No need to worry just open the below link download the patch according to your OS Version, Install the patch and forget.&lt;BR /&gt;Patch will take care of your DST time change.&lt;BR /&gt;&lt;BR /&gt;i.e. after 3:00AM clock will automatically set to 2:00AM&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&amp;amp;cc=us&amp;amp;objectID=c00832124" target="_blank"&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&amp;amp;cc=us&amp;amp;objectID=c00832124&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Wed, 21 Oct 2009 01:31:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/time-set-change/m-p/4517615#M366572</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-10-21T01:31:08Z</dc:date>
    </item>
  </channel>
</rss>

