<?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: Get Time Zone Name or Time Zone ID Using UTC Offset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-Time-Zone-Name-or-Time-Zone-ID-Using-UTC-Offset/m-p/539493#M148658</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; I am able to implement it in a different way :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;

start_date = datetime();

new_date1 = intnx("HOUR",start_date,-3);

format new_date1 datetime.;

put new_date1; 

run;

%Let t1 = %sysfunc(datetime()); 
%Let t2 = %sysfunc(intnx(hour,%sysfunc(datetime()),-3,same), datetime.);
%Put &amp;amp;t2;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 21:53:21 GMT</pubDate>
    <dc:creator>UdayGuntupalli</dc:creator>
    <dc:date>2019-02-28T21:53:21Z</dc:date>
    <item>
      <title>Get Time Zone Name or Time Zone ID Using UTC Offset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Time-Zone-Name-or-Time-Zone-ID-Using-UTC-Offset/m-p/539463#M148636</link>
      <description>&lt;P&gt;All,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Is there a way to determine the current Time Zone Name or Time Zone ID using UTC offset ? For e.g.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data Test; 
       UtcOffset = -7; 
Run; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I would like to retrieve enough information to be able to call tzones2u function i.e. timezone id .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Alternatively, even a macro based solution is fine if I have the following&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%Let UtcOffset = -7; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&amp;nbsp;&lt;/P&gt;&lt;P&gt;Uday&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 19:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Time-Zone-Name-or-Time-Zone-ID-Using-UTC-Offset/m-p/539463#M148636</guid>
      <dc:creator>UdayGuntupalli</dc:creator>
      <dc:date>2019-02-28T19:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get Time Zone Name or Time Zone ID Using UTC Offset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Time-Zone-Name-or-Time-Zone-ID-Using-UTC-Offset/m-p/539480#M148648</link>
      <description>&lt;P&gt;I don't know of a built-in function.&lt;/P&gt;
&lt;P&gt;If there none, you can easily build an informat from the pages&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=n1tj735aocxmw7n1kfoz1qpdvb9l.htm&amp;amp;docsetVersion=3.1&amp;amp;locale=en" target="_self"&gt;Time Zone IDs and Time Zone Names&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 20:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Time-Zone-Name-or-Time-Zone-ID-Using-UTC-Offset/m-p/539480#M148648</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-02-28T20:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get Time Zone Name or Time Zone ID Using UTC Offset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-Time-Zone-Name-or-Time-Zone-ID-Using-UTC-Offset/m-p/539493#M148658</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; I am able to implement it in a different way :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;

start_date = datetime();

new_date1 = intnx("HOUR",start_date,-3);

format new_date1 datetime.;

put new_date1; 

run;

%Let t1 = %sysfunc(datetime()); 
%Let t2 = %sysfunc(intnx(hour,%sysfunc(datetime()),-3,same), datetime.);
%Put &amp;amp;t2;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 21:53:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-Time-Zone-Name-or-Time-Zone-ID-Using-UTC-Offset/m-p/539493#M148658</guid>
      <dc:creator>UdayGuntupalli</dc:creator>
      <dc:date>2019-02-28T21:53:21Z</dc:date>
    </item>
  </channel>
</rss>

