<?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 Shell script to check time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-check-time/m-p/2829659#M721052</link>
    <description>Anyone out there know or have a sample shell script code written in bash to check the time of other countries? I been looking through the zoneinfo under &lt;BR /&gt;/usr/share/lib/zoneinfo but didnt managed to work out.&lt;BR /&gt;Hope someone can help me out with this. Thanks</description>
    <pubDate>Mon, 21 Oct 2002 07:20:19 GMT</pubDate>
    <dc:creator>yihwen</dc:creator>
    <dc:date>2002-10-21T07:20:19Z</dc:date>
    <item>
      <title>Shell script to check time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-check-time/m-p/2829659#M721052</link>
      <description>Anyone out there know or have a sample shell script code written in bash to check the time of other countries? I been looking through the zoneinfo under &lt;BR /&gt;/usr/share/lib/zoneinfo but didnt managed to work out.&lt;BR /&gt;Hope someone can help me out with this. Thanks</description>
      <pubDate>Mon, 21 Oct 2002 07:20:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-check-time/m-p/2829659#M721052</guid>
      <dc:creator>yihwen</dc:creator>
      <dc:date>2002-10-21T07:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to check time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-check-time/m-p/2829660#M721053</link>
      <description>HI&lt;BR /&gt;&lt;BR /&gt;Have a look at /usr/lib/tztab.&lt;BR /&gt;&lt;BR /&gt;Man tztab&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Mon, 21 Oct 2002 08:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-check-time/m-p/2829660#M721053</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-10-21T08:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to check time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-check-time/m-p/2829661#M721054</link>
      <description>As Paula points out, tztab is a list of timezones.  Simply set TZ to the desired timezone and then use the date command.  You will have to figure out what timezone goes with which country.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 21 Oct 2002 11:24:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-check-time/m-p/2829661#M721054</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-21T11:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Shell script to check time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-check-time/m-p/2829662#M721055</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;As already pointed out, the definition of the world's various timezones are found in '/usr/lib/tztab'.&lt;BR /&gt;&lt;BR /&gt;If you merely want to find out the date and time for a timezone other than yours, do this:&lt;BR /&gt;&lt;BR /&gt;# date # ...gives your local date and time&lt;BR /&gt;&lt;BR /&gt;To determine what time it is in Moscow, I note from 'usr/lib/tztab' that the timezone should be 'WST-3WSTDST'.  Thus:&lt;BR /&gt;&lt;BR /&gt;# TZ=WST-3WSTDST date&lt;BR /&gt;&lt;BR /&gt;..will return Moscow's current time.&lt;BR /&gt;&lt;BR /&gt;Note that I only reset the TZ variable for the duration of the command line.  Note the blank (space) between the TZ setting and the 'date' command.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 21 Oct 2002 12:19:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shell-script-to-check-time/m-p/2829662#M721055</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-10-21T12:19:27Z</dc:date>
    </item>
  </channel>
</rss>

