<?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! in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653542#M240845</link>
    <description>The timezone is determined by reading the 'TZ' environment variable.&lt;BR /&gt;&lt;BR /&gt;This variable is set when you execute 'set_parms timezone'. Set_parms&lt;BR /&gt;edits the file '/etc/TIMEZONE,' which exports the 'TZ' environment&lt;BR /&gt;variable. When you reboot after executing set_parms, the file&lt;BR /&gt;/etc/TIMEZONE will be read and your TZ variable set to the value you&lt;BR /&gt;specified. The value is in the format:&lt;BR /&gt;&lt;BR /&gt;  [:]STDoffset[DST[offset][,rule]]&lt;BR /&gt;&lt;BR /&gt;For example: PST8PDT for the U.S. Pacific Time Zone&lt;BR /&gt;&lt;BR /&gt;See the environ(5) manpage for a detailed description of the format.&lt;BR /&gt;&lt;BR /&gt;Note, the offset for daylight savings time is supplied by the&lt;BR /&gt;'/usr/lib/tztab' configuration file.&lt;BR /&gt;&lt;BR /&gt;libc functions like ctime use the 'TZ' variable to determine the&lt;BR /&gt;timezone.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Hanwant Verma</description>
    <pubDate>Thu, 20 Oct 2005 03:29:22 GMT</pubDate>
    <dc:creator>Hanwant Verma_1</dc:creator>
    <dc:date>2005-10-20T03:29:22Z</dc:date>
    <item>
      <title>Day Light Saving!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653541#M240844</link>
      <description>Hi,&lt;BR /&gt;Can anybody tell me how to check if Daylight savings is enabled or not on a HP server.&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Oct 2005 03:22:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653541#M240844</guid>
      <dc:creator>Amit Manna_6</dc:creator>
      <dc:date>2005-10-20T03:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Day Light Saving!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653542#M240845</link>
      <description>The timezone is determined by reading the 'TZ' environment variable.&lt;BR /&gt;&lt;BR /&gt;This variable is set when you execute 'set_parms timezone'. Set_parms&lt;BR /&gt;edits the file '/etc/TIMEZONE,' which exports the 'TZ' environment&lt;BR /&gt;variable. When you reboot after executing set_parms, the file&lt;BR /&gt;/etc/TIMEZONE will be read and your TZ variable set to the value you&lt;BR /&gt;specified. The value is in the format:&lt;BR /&gt;&lt;BR /&gt;  [:]STDoffset[DST[offset][,rule]]&lt;BR /&gt;&lt;BR /&gt;For example: PST8PDT for the U.S. Pacific Time Zone&lt;BR /&gt;&lt;BR /&gt;See the environ(5) manpage for a detailed description of the format.&lt;BR /&gt;&lt;BR /&gt;Note, the offset for daylight savings time is supplied by the&lt;BR /&gt;'/usr/lib/tztab' configuration file.&lt;BR /&gt;&lt;BR /&gt;libc functions like ctime use the 'TZ' variable to determine the&lt;BR /&gt;timezone.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Hanwant Verma</description>
      <pubDate>Thu, 20 Oct 2005 03:29:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653542#M240845</guid>
      <dc:creator>Hanwant Verma_1</dc:creator>
      <dc:date>2005-10-20T03:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Day Light Saving!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653543#M240846</link>
      <description>Hi Amit,&lt;BR /&gt;You have to see /etc/TIMEZONE like in my zone:&lt;BR /&gt;&lt;BR /&gt;# more /etc/TIMEZONE&lt;BR /&gt;TZ=MET-1METDST&lt;BR /&gt;export TZ&lt;BR /&gt;&lt;BR /&gt;As you can see the variable TZ has -1METDST which meens that DST is enabled when it occurs depending of the parameters for date when it changes in /etc/zoneinfo/MET. It should be same for your time zone.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Borislav</description>
      <pubDate>Thu, 20 Oct 2005 03:44:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653543#M240846</guid>
      <dc:creator>Borislav Perkov</dc:creator>
      <dc:date>2005-10-20T03:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Day Light Saving!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653544#M240847</link>
      <description>Kernel parameters "dst" should also be 1.&lt;BR /&gt;Type kmtune | grep dst&lt;BR /&gt;&lt;BR /&gt;Quickest way to check!&lt;BR /&gt;&lt;BR /&gt;Carlo</description>
      <pubDate>Thu, 20 Oct 2005 06:14:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653544#M240847</guid>
      <dc:creator>Carlo Henrico_1</dc:creator>
      <dc:date>2005-10-20T06:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Day Light Saving!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653545#M240848</link>
      <description>In a very real sense, your system doesn't change time at all. It simply counts seconds since 1-Jan-1970. What does change is the way those seconds are displayed. The global TZ setting is controlled by /etc/TIMEZONE but that can be overriden by settings in a user's .profile simply setting and exporting TZ. To actually test your TZ (and to test if you have correctly set values in the tztab file), use the attached Perl script.&lt;BR /&gt;&lt;BR /&gt;dst.pl -n will display the next time change. Invoke as dst.pl for full usage.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Oct 2005 06:22:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653545#M240848</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-10-20T06:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Day Light Saving!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653546#M240849</link>
      <description>As mentioned, HP-UX doesn't know anything about Daylight Saving Time. It keeps time as Clay mentioned based on GMT (or more accurately, UTC or Zulu time. By using a common library call to retrieve the time, the TZ variable can change way time is represented. The date command will display or change the time based of the current value of TZ. For the easiest explanation, look at the manpage for env. It will show you how you can make your own timezone.&lt;BR /&gt; &lt;BR /&gt;By using a simple variable, each user can see their own timezone which is great for an international machine. A user inn Australia and a user in England can login to the same machine, yet see the time displayed in their own timezone - just set TZ appropriately in their login profile (typically .profile).&lt;BR /&gt; &lt;BR /&gt;As far as whether your login will show the time change, tpye the command:&lt;BR /&gt; &lt;BR /&gt;echo $TZ&lt;BR /&gt; &lt;BR /&gt;If it has only a single timezone name (like GMT0) then no Daylight Saving will be observed. If it has the extension (like GMT0BST) then the rules for British time will be obsevered as defined in /usr/lib/tztab.&lt;BR /&gt; &lt;BR /&gt;The file /etc/TIMEZONE provides a default TZ value in /etc/profile for all users, but this is just a default value and is most often set to match the timezone where the machine is located (ie, for the console). You can actually see the time in any timezone by temporarily defining a different timezone for the date command, like these examples:&lt;BR /&gt; &lt;BR /&gt;TZ=EST5EDT date&lt;BR /&gt;TZ=PST8PDT date&lt;BR /&gt;TZ=GMT0 date&lt;BR /&gt; &lt;BR /&gt;If you find that your particular timezone is not found in /usr/lib/tztab, don't worry. You can make your own timezone entry in tztab. Use the tztab comments and man page for tztab to help with this task.</description>
      <pubDate>Thu, 20 Oct 2005 08:32:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653546#M240849</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-10-20T08:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Day Light Saving!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653547#M240850</link>
      <description>Out of curiosity, has anyone ever used 'date -a' to slowly subtract one hour rather than have it fall back immediately?&lt;BR /&gt;&lt;BR /&gt;We shut down our databases and apps for the time change in the fall; I wonder if this could easily be avoided by using the "Slowly adjust the time" feature instead.&lt;BR /&gt;&lt;BR /&gt;Scott</description>
      <pubDate>Mon, 24 Oct 2005 10:03:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653547#M240850</guid>
      <dc:creator>Scott Lindstrom_2</dc:creator>
      <dc:date>2005-10-24T10:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Day Light Saving!</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653548#M240851</link>
      <description>It is definitely not a good idea to change the system time. date -a is designed to move a few minutes, although it's possible that the date command does not have any checks for a massively large change like 3600 seconds. NTP uses this technique (ntpdate -B) but is limited to 1024 seconds (17 minutes). Most modern databases run on GMT internally and rely on the OS libraries to translate the time to a local value for display. &lt;BR /&gt; &lt;BR /&gt;The 'slow' adjustment is typically requires about as much as an hour per minute of change, so changing 60 minutes is not possible in less than one day. The whole point of slewing the time is that every time tick (all 86,400 seconds) will occur per 25 hour period, so the time between ticks is slightly adjusted to keep in sync with the master clock.</description>
      <pubDate>Mon, 24 Oct 2005 10:18:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/day-light-saving/m-p/3653548#M240851</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-10-24T10:18:05Z</dc:date>
    </item>
  </channel>
</rss>

