<?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: working with timestamps in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/672387#M202074</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;The SAS System 


Obs A                       B 
1 2020/07/13 8:27:15 PM AST . 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 26 Jul 2020 11:06:50 GMT</pubDate>
    <dc:creator>GreggB</dc:creator>
    <dc:date>2020-07-26T11:06:50Z</dc:date>
    <item>
      <title>working with timestamps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/671234#M201536</link>
      <description>&lt;P&gt;my data is of the form:&lt;/P&gt;
&lt;P&gt;2020/07/13 8:27:15 PM AST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to read it in as numeric so I can sort it. I want to format it to read as it is in the Google sheet.&lt;/P&gt;
&lt;P&gt;I need help with&lt;/P&gt;
&lt;P&gt;informat timestamp ?;&lt;/P&gt;
&lt;P&gt;format timestamp&amp;nbsp; ? ;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 22:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/671234#M201536</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2020-07-21T22:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: working with timestamps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/671241#M201540</link>
      <description>&lt;P&gt;Have a look at next links for date-time informats:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_intervals_sect009.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_self"&gt;https://documentation.sas.com/?docsetId=etsug&amp;amp;docsetTarget=etsug_intervals_sect009.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dealing with time zone:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/44/074.html" target="_self"&gt;https://support.sas.com/kb/44/074.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 23:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/671241#M201540</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-07-21T23:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: working with timestamps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/671244#M201541</link>
      <description>&lt;P&gt;1. Not using a 24h clock for time should be harshly punished&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. This reads your string:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
  invalue weird_dtm 's/(\d*)\/([^ ]*)(.*)/$2\/$1$3/' (regexpe)=[anydtdtm32.];
data T;
  A = '2020/07/13 8:27:15 PM AST';
  B = input(a,weird_dtm.); 
  putlog B= datetime20.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;B=13JUL2020:20:27:15&lt;/FONT&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. I am unsure what you want to do with the time zone. You might be interested in&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=p12pvfgfm152jhn1r9b1u1rl8ut8.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;Overview of SAS Time Zones&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 00:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/671244#M201541</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-22T00:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: working with timestamps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/672387#M202074</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;The SAS System 


Obs A                       B 
1 2020/07/13 8:27:15 PM AST . 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 26 Jul 2020 11:06:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/672387#M202074</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2020-07-26T11:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: working with timestamps</title>
      <link>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/672418#M202095</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13712"&gt;@GreggB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;my data is of the form:&lt;/P&gt;
&lt;P&gt;2020/07/13 8:27:15 PM AST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to read it in as numeric so I can sort it. I want to format it to read as it is in the Google sheet.&lt;/P&gt;
&lt;P&gt;I need help with&lt;/P&gt;
&lt;P&gt;informat timestamp ?;&lt;/P&gt;
&lt;P&gt;format timestamp&amp;nbsp; ? ;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;There a lot of unanswered questions for this.&amp;nbsp; What is the actual source of this data?&amp;nbsp; Sounds like you have SAS dataset with a character variable.&amp;nbsp; But then you mentioned Google sheet.&amp;nbsp; Do you have an XLSX compatible file?&amp;nbsp; Do you want to create an XLSX compatible file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you care about the timezone or not?&amp;nbsp; That is do you just want to convert the value into a datetime value or do you want the result adjust so that values from different timezones can be compared?&amp;nbsp; So AST is 4 hours before GMT.&amp;nbsp; Note AST is the same offset from GMT as EDT (at least now).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you mean about formatting in the Google sheet?&amp;nbsp; Are you going to write a report and publish it as a Google worksheet?&amp;nbsp; Do you need the value stored in the Google sheet as datetime value with its offset from GMT?&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jul 2020 22:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/working-with-timestamps/m-p/672418#M202095</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-26T22:15:58Z</dc:date>
    </item>
  </channel>
</rss>

