<?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 Need help in time format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/460727#M117131</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have time format 515 and i want desired time format as 05:15.&lt;/P&gt;&lt;P&gt;could anybody help me with getting the desired format.&lt;/P&gt;</description>
    <pubDate>Tue, 08 May 2018 15:24:49 GMT</pubDate>
    <dc:creator>apxprdtr10</dc:creator>
    <dc:date>2018-05-08T15:24:49Z</dc:date>
    <item>
      <title>Need help in time format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/460727#M117131</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have time format 515 and i want desired time format as 05:15.&lt;/P&gt;&lt;P&gt;could anybody help me with getting the desired format.&lt;/P&gt;</description>
      <pubDate>Tue, 08 May 2018 15:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/460727#M117131</guid>
      <dc:creator>apxprdtr10</dc:creator>
      <dc:date>2018-05-08T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in time format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/460735#M117134</link>
      <description>&lt;P&gt;Is time a character or numeric variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Either way, do something like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
   Time=515;
   CharTime=put(Time, 4.);
   RightTime=input(put(Time, 4.), hhmmss5.);
   format RightTime time5.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2018 15:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/460735#M117134</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-05-08T15:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in time format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/460736#M117135</link>
      <description>&lt;P&gt;Assuming your existing variable is actually numeric here is an example:&lt;/P&gt;
&lt;PRE&gt;data junk;
   x=515;
   x=input(put(x,z4.),hhmmss.);
   format x time5.;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 May 2018 15:52:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/460736#M117135</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-08T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in time format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/462110#M117585</link>
      <description>&lt;P&gt;I really appreciate your valuable reply but it just slightly differ from my desired result.&lt;/P&gt;&lt;P&gt;your replied answer gives me time as 5:15 but i want as 05:15&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 16:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/462110#M117585</guid>
      <dc:creator>apxprdtr10</dc:creator>
      <dc:date>2018-05-14T16:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in time format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/462115#M117589</link>
      <description>&lt;P&gt;You could always just roll your own format. e.g.:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format; 
   picture todx other='%0H:%0M' (datatype=time);
run;

data junk;
   x=515;
   x=input(put(x,z4.),hhmmss.);
   format x todx.;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 May 2018 16:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/462115#M117589</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-05-14T16:17:53Z</dc:date>
    </item>
  </channel>
</rss>

