<?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: converting numbers to time format in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/converting-numbers-to-time-format/m-p/442026#M28528</link>
    <description>&lt;P&gt;Sounds like that’s a date time. Do you know what the date of 'epoch' is?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to apply the datetime format. If it shows a date and time you expect you can use TIMEPART to extract the relevant time portion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc print data =have;
Format variable datetime.;

Time_portion = timepart(variable);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 03 Mar 2018 05:33:21 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-03-03T05:33:21Z</dc:date>
    <item>
      <title>converting numbers to time format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/converting-numbers-to-time-format/m-p/442023#M28527</link>
      <description>&lt;P&gt;I have one numeric value (below) as&amp;nbsp;time&amp;nbsp;and description of the value is "in seconds since the epoch".&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;would I able to convert it into hh:mm:ss? - Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1510949673&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="85"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="85"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Sat, 03 Mar 2018 05:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/converting-numbers-to-time-format/m-p/442023#M28527</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2018-03-03T05:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: converting numbers to time format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/converting-numbers-to-time-format/m-p/442026#M28528</link>
      <description>&lt;P&gt;Sounds like that’s a date time. Do you know what the date of 'epoch' is?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to apply the datetime format. If it shows a date and time you expect you can use TIMEPART to extract the relevant time portion.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc print data =have;
Format variable datetime.;

Time_portion = timepart(variable);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 03 Mar 2018 05:33:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/converting-numbers-to-time-format/m-p/442026#M28528</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-03-03T05:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: converting numbers to time format</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/converting-numbers-to-time-format/m-p/442030#M28529</link>
      <description>&lt;P&gt;This might be a UNIX timestamp, in which case you need to add the difference between 01jan1960 and 01jan1970 to correctly display in SAS.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Mar 2018 06:08:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/converting-numbers-to-time-format/m-p/442030#M28529</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-03T06:08:28Z</dc:date>
    </item>
  </channel>
</rss>

