<?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 convert eastern datetime to local datetime in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-eastern-datetime-to-local-datetime/m-p/270426#M53731</link>
    <description>Hi I have a table that has the time set at eastern time I need it to be local time depending what time zone...&lt;BR /&gt;Here is example&lt;BR /&gt;STATE. START. END.&lt;BR /&gt;TX. 02/07/16 01:59 AM. 02/07/16 02:02 AM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need that to convert to local texas time..... I can add zip code actually I have a column that has time off set which shows an -60.</description>
    <pubDate>Fri, 13 May 2016 18:47:46 GMT</pubDate>
    <dc:creator>Beto16</dc:creator>
    <dc:date>2016-05-13T18:47:46Z</dc:date>
    <item>
      <title>convert eastern datetime to local datetime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-eastern-datetime-to-local-datetime/m-p/270426#M53731</link>
      <description>Hi I have a table that has the time set at eastern time I need it to be local time depending what time zone...&lt;BR /&gt;Here is example&lt;BR /&gt;STATE. START. END.&lt;BR /&gt;TX. 02/07/16 01:59 AM. 02/07/16 02:02 AM&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need that to convert to local texas time..... I can add zip code actually I have a column that has time off set which shows an -60.</description>
      <pubDate>Fri, 13 May 2016 18:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-eastern-datetime-to-local-datetime/m-p/270426#M53731</guid>
      <dc:creator>Beto16</dc:creator>
      <dc:date>2016-05-13T18:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: convert eastern datetime to local datetime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-eastern-datetime-to-local-datetime/m-p/270451#M53745</link>
      <description>&lt;P&gt;You could use an informat to translate the state name into a minute offset :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
invalue timeZone
"TX" = -60
"NY" = 0
OTHER = 0
;
run;

data have;
infile datalines dsd dlm=".";
input STATE :timeZone. (START END) (:MDYAMPM.);
TX_start = intnx("MINUTE",START, STATE);
TX_end = intnx("MINUTE", END, STATE);
format TX_: dateampm.;
datalines;
TX. 02/07/16 01:59 AM. 02/07/16 02:02 AM.
;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 13 May 2016 21:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-eastern-datetime-to-local-datetime/m-p/270451#M53745</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-13T21:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: convert eastern datetime to local datetime</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-eastern-datetime-to-local-datetime/m-p/270721#M53832</link>
      <description>&lt;P&gt;Is there any chance you're going to be dealing with Texas times in the El Paso region? El Paso is Mountain Time zone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you have the SAS supplied SASHELP.Zipcode data set (or download it) there is time offset and daylight savings time information by Zip code that may be of use.&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 16:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-eastern-datetime-to-local-datetime/m-p/270721#M53832</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-05-16T16:36:36Z</dc:date>
    </item>
  </channel>
</rss>

