<?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 Hour minutes informat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hour-minutes-informat/m-p/379265#M91278</link>
    <description>SAS gurus,&lt;BR /&gt;How can I read time (0233 or 1433) in sas?&lt;BR /&gt;HHMM. Is not working and I would like to see 24hrminute format&lt;BR /&gt;Have 0233 This is am&lt;BR /&gt;0233 This is pm&lt;BR /&gt;&lt;BR /&gt;Want 0233&lt;BR /&gt;1433</description>
    <pubDate>Wed, 26 Jul 2017 02:39:32 GMT</pubDate>
    <dc:creator>buddha_d</dc:creator>
    <dc:date>2017-07-26T02:39:32Z</dc:date>
    <item>
      <title>Hour minutes informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hour-minutes-informat/m-p/379265#M91278</link>
      <description>SAS gurus,&lt;BR /&gt;How can I read time (0233 or 1433) in sas?&lt;BR /&gt;HHMM. Is not working and I would like to see 24hrminute format&lt;BR /&gt;Have 0233 This is am&lt;BR /&gt;0233 This is pm&lt;BR /&gt;&lt;BR /&gt;Want 0233&lt;BR /&gt;1433</description>
      <pubDate>Wed, 26 Jul 2017 02:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hour-minutes-informat/m-p/379265#M91278</guid>
      <dc:creator>buddha_d</dc:creator>
      <dc:date>2017-07-26T02:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hour minutes informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hour-minutes-informat/m-p/379274#M91281</link>
      <description>&lt;P&gt;Adapt the number so that it fits the time. informat, and use the index() function to determine pm and am. Set the hour either by adding 12*360, or use the intnx() function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input timestr $25.;
time_num = input(substr(timestr,1,2) !! ':' !! substr(timestr,3,2),time5.);
if index(timestr,'pm') &amp;gt; 0 then time_num = intnx('hour',time_num,12,'s');
format time_num time8.;
cards;
0233 This is am
0233 This is pm
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 05:41:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hour-minutes-informat/m-p/379274#M91281</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-26T05:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hour minutes informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hour-minutes-informat/m-p/379308#M91295</link>
      <description>&lt;P&gt;Thanks KurtBremser, it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 09:51:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hour-minutes-informat/m-p/379308#M91295</guid>
      <dc:creator>buddha_d</dc:creator>
      <dc:date>2017-07-26T09:51:52Z</dc:date>
    </item>
  </channel>
</rss>

