<?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 Scripting for time zone in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-for-time-zone/m-p/4784088#M641012</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can anyone help in creating a shell script for time zone conversion?&lt;BR /&gt;&lt;BR /&gt;My requirement is that: the script will run on the server and take out the Time Zone (let us suppose  it is CDT) and i wanted it to be converted this CDT time(it should always be 1 P.M) in GMT +5:30 through script. Whatever the timing zones of server i just wanted to convert it in GMT +5:30&lt;BR /&gt;For Example- the current time on server is 11:00 P.M. CDT so i wanted to know whats the timings in GMT +5:30 when the server timing is 1:00PM CDT, i mean 1 P.M. CDT is equal to what in GMT +5:30 through script.&lt;BR /&gt;</description>
    <pubDate>Wed, 04 May 2011 08:14:22 GMT</pubDate>
    <dc:creator>shikhar_1</dc:creator>
    <dc:date>2011-05-04T08:14:22Z</dc:date>
    <item>
      <title>Scripting for time zone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-for-time-zone/m-p/4784088#M641012</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can anyone help in creating a shell script for time zone conversion?&lt;BR /&gt;&lt;BR /&gt;My requirement is that: the script will run on the server and take out the Time Zone (let us suppose  it is CDT) and i wanted it to be converted this CDT time(it should always be 1 P.M) in GMT +5:30 through script. Whatever the timing zones of server i just wanted to convert it in GMT +5:30&lt;BR /&gt;For Example- the current time on server is 11:00 P.M. CDT so i wanted to know whats the timings in GMT +5:30 when the server timing is 1:00PM CDT, i mean 1 P.M. CDT is equal to what in GMT +5:30 through script.&lt;BR /&gt;</description>
      <pubDate>Wed, 04 May 2011 08:14:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-for-time-zone/m-p/4784088#M641012</guid>
      <dc:creator>shikhar_1</dc:creator>
      <dc:date>2011-05-04T08:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting for time zone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-for-time-zone/m-p/4784089#M641013</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# TZ=EST5EDT date&lt;BR /&gt;&lt;BR /&gt;# TZ=UTC date&lt;BR /&gt;&lt;BR /&gt;# TZ=PST8PDT date&lt;BR /&gt;&lt;BR /&gt;...will establish a timezone for the duration of the command line since there is no semicolon (';') after the TZ variable setting.&lt;BR /&gt;&lt;BR /&gt;You can do this in a script and capture the result, too:&lt;BR /&gt;&lt;BR /&gt;# MYTIME=$(TZ=PST8PDT date)&lt;BR /&gt;# echo ${MYTIME}&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 04 May 2011 10:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-for-time-zone/m-p/4784089#M641013</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2011-05-04T10:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting for time zone</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-for-time-zone/m-p/4784090#M641014</link>
      <description>JRF has shown you how to convert the current time to IST:  TZ=IST-5:30 date&lt;BR /&gt;&lt;BR /&gt;If you want to convert arbitrary times, you'll need to write a C/C++ program or use perl.</description>
      <pubDate>Wed, 04 May 2011 18:22:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-for-time-zone/m-p/4784090#M641014</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-05-04T18:22:31Z</dc:date>
    </item>
  </channel>
</rss>

