<?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: Time function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Time-function/m-p/76974#M16634</link>
    <description>You can use the SAS INPUT function in a DATA step to convert a text-string in the format you mentioned in your post to a SAS numeric variable.  When converted, the value will represent seconds, and so then you choose a SAS FORMAT to display your data as needed.&lt;BR /&gt;
&lt;BR /&gt;
The SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  and its SEARCH facility can provide both documentation and supplemental technical conference topic material.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Sun, 15 Mar 2009 18:18:43 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-03-15T18:18:43Z</dc:date>
    <item>
      <title>Time function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-function/m-p/76973#M16633</link>
      <description>I am trying to input a time value that is given in 00:00:00 (Hour:Minute:Second) Format.  I am wondering how I can input this so SAS converts it to all seconds so I can subtract and add the times to eachother.  I then need to convert it back to the Hour:Minute:Second time format.  Anyone know the imput function command or how I could do this?  I am pulling the data from a .csv file.  Thanks for any help.</description>
      <pubDate>Sun, 15 Mar 2009 17:32:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-function/m-p/76973#M16633</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-15T17:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Time function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-function/m-p/76974#M16634</link>
      <description>You can use the SAS INPUT function in a DATA step to convert a text-string in the format you mentioned in your post to a SAS numeric variable.  When converted, the value will represent seconds, and so then you choose a SAS FORMAT to display your data as needed.&lt;BR /&gt;
&lt;BR /&gt;
The SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  and its SEARCH facility can provide both documentation and supplemental technical conference topic material.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 15 Mar 2009 18:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-function/m-p/76974#M16634</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-03-15T18:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Time function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-function/m-p/76975#M16635</link>
      <description>Think you need the hhmmss format, which convert the data on which you can perform calculations. &lt;BR /&gt;
&lt;BR /&gt;
data test;&lt;BR /&gt;
	input time hhmmss8.;&lt;BR /&gt;
	time_5 = time + 5*60;&lt;BR /&gt;
	format time time_5 tod.;&lt;BR /&gt;
	cards;&lt;BR /&gt;
02:32:41&lt;BR /&gt;
;&lt;BR /&gt;
run;</description>
      <pubDate>Sun, 15 Mar 2009 18:41:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-function/m-p/76975#M16635</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-15T18:41:05Z</dc:date>
    </item>
  </channel>
</rss>

