<?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: changing system time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167624#M320810</link>
    <description>HP-UX keeps only one time and that is UTC (also known as GMT or Zulu time) which is the time that the entire world uses as a reference. To accommodate humans, the world is divided into timezones, but they aren't very accurate and keep bouncing around due to political decisions.&lt;BR /&gt; &lt;BR /&gt;The good news is that HP-UX can provide every timezone at the same time using a variable called TZ. Your TZ value can be seen with the command:&lt;BR /&gt; &lt;BR /&gt;echo $TZ&lt;BR /&gt; &lt;BR /&gt;It was set when you logged in from the value stored in /etc/TIMEZONE. This file is changed when you first install your system and pick the local timezone. This TZ value is used in conjunction with /usr/lib/tztab where the rules for dozens of different timezones (not all) are located.&lt;BR /&gt; &lt;BR /&gt;So if the date command (without -u) is off by hours, don't change the time until you look at the timezone, in your case CDT which means Central Daylight Saving Timezone. If this timezone is correct for your local system, then (as root) you can change the time to match your local time. NOTE: don't change time when applications are running. To be safe, reboot into single user mode and change the time there.&lt;BR /&gt; &lt;BR /&gt;Now if any users login from remote sites where they have a different timezone, they can change the TZ value in their .profile to match their local time. It will not affect the system time as the TZ value is only translating the time (from UTC) based on the rules in tztab.&lt;BR /&gt; &lt;BR /&gt;NTP is the most popular (and precise) tool to keep all your servers in sync. Computer clocks will drift over time  and NTP will keep your system in sync with the atomic clocks all over the Internet. Setting up NTP is easy, but finding several NTP servers depends very much on your local data center. If you have network administrators, ask them about NTP servers that already exists in your company.</description>
    <pubDate>Wed, 26 Mar 2008 00:13:02 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2008-03-26T00:13:02Z</dc:date>
    <item>
      <title>changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167617#M320803</link>
      <description>After installing new disk drives and rebooting from tape the system time seems to be 2 hours off. Is there any possible problems associated with changing the system time as in these messages. Am new to sys admin, Thank you.</description>
      <pubDate>Tue, 25 Mar 2008 18:25:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167617#M320803</guid>
      <dc:creator>Lisa Dingman</dc:creator>
      <dc:date>2008-03-25T18:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167618#M320804</link>
      <description>Hiya Lisa, and welcome!!&lt;BR /&gt;&lt;BR /&gt;At the root prompt, type:&lt;BR /&gt;# set_parms date&lt;BR /&gt;&lt;BR /&gt;follow the bouncing prompt.  Once you get it all set, look into NTP, and sync with an outside source, or another server in your organization.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!!</description>
      <pubDate>Tue, 25 Mar 2008 18:30:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167618#M320804</guid>
      <dc:creator>Ron Irving</dc:creator>
      <dc:date>2008-03-25T18:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167619#M320805</link>
      <description>Hi Lisa:&lt;BR /&gt;&lt;BR /&gt;Verify the true time with:&lt;BR /&gt;&lt;BR /&gt;# date -u&lt;BR /&gt;&lt;BR /&gt;This returns the UTC (GMT) time.  Your localtime is governed by your TZ (timezone) setting.  The master setting should reside in '/etc/TIMEZONE'.  Individual login profiles may differ.&lt;BR /&gt;&lt;BR /&gt;You should be synchronizing to an external time source with NTP to maintain a correct time.&lt;BR /&gt;&lt;BR /&gt;You can reset your date by using 'date':&lt;BR /&gt;&lt;BR /&gt;# date [-u] [mmddhhmm[[cc]yy]]&lt;BR /&gt;&lt;BR /&gt;If you are stepping the date/time forward this is "safe".  If you are adjusting backwards, you should first stop all time-sensitive processes (notably databases); adjust the time; and then restart the processes.  The 'cron' daemon should also be stopped and restared if you are moving time backwards.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 25 Mar 2008 18:36:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167619#M320805</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-03-25T18:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167620#M320806</link>
      <description>Thanks everyone so much, is a big help!</description>
      <pubDate>Tue, 25 Mar 2008 19:02:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167620#M320806</guid>
      <dc:creator>Lisa Dingman</dc:creator>
      <dc:date>2008-03-25T19:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167621#M320807</link>
      <description>Could you tell me please what is NTP? Also this is the output form the following date and date -u commands. Why is there a discrepency between the two?&lt;BR /&gt;# date&lt;BR /&gt;Tue Mar 25 17:07:21 CDT 2008&lt;BR /&gt;# date -u&lt;BR /&gt;Tue Mar 25 22:07:24 UTC 2008&lt;BR /&gt;# &lt;BR /&gt;</description>
      <pubDate>Tue, 25 Mar 2008 19:13:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167621#M320807</guid>
      <dc:creator>Lisa Dingman</dc:creator>
      <dc:date>2008-03-25T19:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167622#M320808</link>
      <description>There is a discrepancy because the 'date' command (without the '-u') is displaying the time in YOUR time zone, currently CDT.&lt;BR /&gt;&lt;BR /&gt;The 'date -u' command is display the time in UTC/GMT (Universal Time Coordinate / Greenwich Mean Time).</description>
      <pubDate>Tue, 25 Mar 2008 20:29:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167622#M320808</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-03-25T20:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167623#M320809</link>
      <description>Hi (again) Lisa:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Could you tell me please what is NTP?&lt;BR /&gt;&lt;BR /&gt;NTP = Network Time Protocol&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90774/ch04.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90774/ch04.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;...no server should be without it (IMHO)!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 25 Mar 2008 20:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167623#M320809</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-03-25T20:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167624#M320810</link>
      <description>HP-UX keeps only one time and that is UTC (also known as GMT or Zulu time) which is the time that the entire world uses as a reference. To accommodate humans, the world is divided into timezones, but they aren't very accurate and keep bouncing around due to political decisions.&lt;BR /&gt; &lt;BR /&gt;The good news is that HP-UX can provide every timezone at the same time using a variable called TZ. Your TZ value can be seen with the command:&lt;BR /&gt; &lt;BR /&gt;echo $TZ&lt;BR /&gt; &lt;BR /&gt;It was set when you logged in from the value stored in /etc/TIMEZONE. This file is changed when you first install your system and pick the local timezone. This TZ value is used in conjunction with /usr/lib/tztab where the rules for dozens of different timezones (not all) are located.&lt;BR /&gt; &lt;BR /&gt;So if the date command (without -u) is off by hours, don't change the time until you look at the timezone, in your case CDT which means Central Daylight Saving Timezone. If this timezone is correct for your local system, then (as root) you can change the time to match your local time. NOTE: don't change time when applications are running. To be safe, reboot into single user mode and change the time there.&lt;BR /&gt; &lt;BR /&gt;Now if any users login from remote sites where they have a different timezone, they can change the TZ value in their .profile to match their local time. It will not affect the system time as the TZ value is only translating the time (from UTC) based on the rules in tztab.&lt;BR /&gt; &lt;BR /&gt;NTP is the most popular (and precise) tool to keep all your servers in sync. Computer clocks will drift over time  and NTP will keep your system in sync with the atomic clocks all over the Internet. Setting up NTP is easy, but finding several NTP servers depends very much on your local data center. If you have network administrators, ask them about NTP servers that already exists in your company.</description>
      <pubDate>Wed, 26 Mar 2008 00:13:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167624#M320810</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-03-26T00:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167625#M320811</link>
      <description>&amp;gt;Also this is the output form the following date and date -u commands. Why is there a discrepancy between the two?&lt;BR /&gt;# date&lt;BR /&gt;Tue Mar 25 17:07:21 CDT 2008&lt;BR /&gt;# date -u&lt;BR /&gt;Tue Mar 25 22:07:24 UTC 2008&lt;BR /&gt;&lt;BR /&gt;There is no discrepancy.  You have the correct times for UTC and CDT.&lt;BR /&gt;I.e. a time is composed of a date, time of day and a zone.&lt;BR /&gt;17:07:21 CDT&lt;BR /&gt;22:07:24 UTC&lt;BR /&gt;&lt;BR /&gt;If you are off by 2 hours, you aren't in the CDT timezone.  You are either off the coast of New Jersey :-) or in PDT.&lt;BR /&gt;So instead of using TZ=CST6CDT, you need to use TZ=PST8PDT.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Bill: So if the date command (without -u) is off by hours, don't change the time until you look at the timezone&lt;BR /&gt;&lt;BR /&gt;From the timestamp on Lisa's reply, it seems the timezone is wrong.  Unless she took longer than 6 minutes to reply or the ITRC forums were down.  :-)</description>
      <pubDate>Wed, 26 Mar 2008 02:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167625#M320811</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-26T02:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167626#M320812</link>
      <description>&amp;gt;ME: From the timestamp on Lisa's reply, it seems the timezone is wrong. ...&lt;BR /&gt;&lt;BR /&gt;Oops, looking more closely, it looks like UTC is two hours too fast.  So you'll need to pay attention to JRF's caution about going back in time.</description>
      <pubDate>Wed, 26 Mar 2008 03:32:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167626#M320812</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-03-26T03:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167627#M320813</link>
      <description>$ date &lt;BR /&gt;Wed Apr 23 13:30:35 EDT 2008&lt;BR /&gt;$ date -u&lt;BR /&gt;Wed Apr 23 17:30:38 UTC 2008&lt;BR /&gt;&lt;BR /&gt;Actual time is 2:07PM EST. &lt;BR /&gt;&lt;BR /&gt;How can I set the system clock in HP-UX 11i version2?&lt;BR /&gt;If I do &lt;BR /&gt;date [-u] [mmddhhmm[[cc]yy]]&lt;BR /&gt;,do I have to specify the time in UTC?&lt;BR /&gt;&lt;BR /&gt;How to set the system time to Wed Apr 23 14:07:35 EDT 2008 from Wed Apr 23 17:30:38 UTC 2008 ??</description>
      <pubDate>Wed, 23 Apr 2008 17:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167627#M320813</guid>
      <dc:creator>HPquestion</dc:creator>
      <dc:date>2008-04-23T17:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167628#M320814</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;The obvious answer is to take the following steps:&lt;BR /&gt;&lt;BR /&gt;1) Configure the system to use a valid NTP time source. This can be done with sam or on the command line.&lt;BR /&gt;2)Use set_parms to push the date forward but never backward. Rolling system time backward will cause Oracle databases to crash and possibly corrupt.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 23 Apr 2008 17:42:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167628#M320814</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-04-23T17:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167629#M320815</link>
      <description>&amp;gt;$ date&lt;BR /&gt;Wed Apr 23 13:30:35 EDT 2008&lt;BR /&gt;&amp;gt;$ date -u&lt;BR /&gt;Wed Apr 23 17:30:38 UTC 2008&lt;BR /&gt;&amp;gt;Actual time is 2:07PM EDT.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How can I set the system clock in HP-UX?&lt;BR /&gt;&amp;gt;If I do&lt;BR /&gt;date [-u] [mmddhhmm[[cc]yy]]&lt;BR /&gt;&amp;gt;do I have to specify the time in UTC?&lt;BR /&gt;&lt;BR /&gt;No, if TZ it set correct to EDT, you just use the local time.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How to set the system time to Wed Apr 23 14:07:35 EDT 2008 from Wed Apr 23 17:30:38 UTC 2008?&lt;BR /&gt;&lt;BR /&gt;This moves forward about 37 minutes, if you did it then:&lt;BR /&gt;# date 04231407</description>
      <pubDate>Thu, 24 Apr 2008 02:33:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167629#M320815</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-24T02:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167630#M320816</link>
      <description>Thank you everyone for all your help!</description>
      <pubDate>Thu, 24 Apr 2008 11:50:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167630#M320816</guid>
      <dc:creator>Lisa Dingman</dc:creator>
      <dc:date>2008-04-24T11:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: changing system time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167631#M320817</link>
      <description>Dear Lisa&lt;BR /&gt;&lt;BR /&gt;date is the command for that&lt;BR /&gt;&lt;BR /&gt;see man date&lt;BR /&gt;&lt;BR /&gt;thanks and regards&lt;BR /&gt;&lt;BR /&gt;sajjad</description>
      <pubDate>Thu, 24 Apr 2008 16:34:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-system-time/m-p/4167631#M320817</guid>
      <dc:creator>Sajjad Sahir</dc:creator>
      <dc:date>2008-04-24T16:34:54Z</dc:date>
    </item>
  </channel>
</rss>

