<?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: Need help in time format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/477107#M122822</link>
    <description>&lt;P&gt;How do you import the data? And how is the data stored?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide more information and be more specific. We have no chance of helping you otherwise&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 14:34:31 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-07-11T14:34:31Z</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/477104#M122819</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a data set in which there is a variable named time,&lt;/P&gt;&lt;P&gt;snippets from time variable:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;0:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;17:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;18:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;20:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;21:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;22:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;23:00:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;after 23:00:00, in data set it is in repetition form but when i import this data set it will get converted into this pattern:&lt;/P&gt;&lt;P&gt;0:00:00&lt;/P&gt;&lt;P&gt;1:00:00&lt;/P&gt;&lt;P&gt;2:00:00&lt;/P&gt;&lt;P&gt;3:00:00&lt;/P&gt;&lt;P&gt;4:00:00&lt;/P&gt;&lt;P&gt;5:00:00&lt;/P&gt;&lt;P&gt;6:00:00&lt;/P&gt;&lt;P&gt;7:00:00&lt;/P&gt;&lt;P&gt;8:00:00&lt;/P&gt;&lt;P&gt;9:00:00&lt;/P&gt;&lt;P&gt;10:00:00&lt;/P&gt;&lt;P&gt;1100:00&lt;/P&gt;&lt;P&gt;12:00:00&lt;/P&gt;&lt;P&gt;13:00:00&lt;/P&gt;&lt;P&gt;14:00:00&lt;/P&gt;&lt;P&gt;15:00:00&lt;/P&gt;&lt;P&gt;16:00:00&lt;/P&gt;&lt;P&gt;17:00:00&lt;/P&gt;&lt;P&gt;18:00:00&lt;/P&gt;&lt;P&gt;19:00:00&lt;/P&gt;&lt;P&gt;20:00:00&lt;/P&gt;&lt;P&gt;21:00:00&lt;/P&gt;&lt;P&gt;22:00:00&lt;/P&gt;&lt;P&gt;23:00:00&lt;/P&gt;&lt;P&gt;24:00:00&lt;/P&gt;&lt;P&gt;25:00:00 and so on.&lt;/P&gt;&lt;P&gt;Please help me in getting desired result.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 14:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/477104#M122819</guid>
      <dc:creator>apxprdtr10</dc:creator>
      <dc:date>2018-07-11T14:32:42Z</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/477107#M122822</link>
      <description>&lt;P&gt;How do you import the data? And how is the data stored?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please provide more information and be more specific. We have no chance of helping you otherwise&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 14:34:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/477107#M122822</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-11T14:34:31Z</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/477116#M122826</link>
      <description>&lt;P&gt;the above format of time is same as data stored.&lt;/P&gt;&lt;P&gt;and importing as:-&lt;/P&gt;&lt;P&gt;proc import datafile='/folders/myfolders/ab/cs1.xlsx'&lt;BR /&gt;out=cs.weather dbms=xlsx replace;&lt;BR /&gt;getnames=yes;&lt;BR /&gt;sheet=weather;&lt;BR /&gt;datarow=2;&lt;BR /&gt;guessingrows=1000;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i think somebody could help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 15:07:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/477116#M122826</guid>
      <dc:creator>apxprdtr10</dc:creator>
      <dc:date>2018-07-11T15:07:36Z</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/477134#M122832</link>
      <description>&lt;P&gt;What you see in Excel is not what you&amp;nbsp;&lt;EM&gt;have&lt;/EM&gt;. The Excel time format creates a display of the internal number modulo 86400, while SAS displays hours beyond 24.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 15:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/477134#M122832</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-11T15:44:07Z</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/477146#M122836</link>
      <description>&lt;P&gt;What's your variable type and format?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 16:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/477146#M122836</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-11T16:45:17Z</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/477316#M122911</link>
      <description>&lt;P&gt;Type-Numeric&lt;/P&gt;&lt;P&gt;Format-Time.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 03:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/477316#M122911</guid>
      <dc:creator>apxprdtr10</dc:creator>
      <dc:date>2018-07-12T03:29:00Z</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/477331#M122915</link>
      <description>&lt;P&gt;I looked deeper into that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are no time values in Excel (or other spreadsheet programs). Excel actually stores times as fractions of days (so everything dealing with time - dates and times - becomes a datetime internally), and the time format just discards everything before the comma.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when you enter a time series in Excel and expand that beyond 23:59:59, you get an internal value of 1.xxxxx. When SAS tries to import that (by multiplying with 86400 to get a proper time value), you get a value beyond 24 hours, which is displayed as 25:, 26: and so on, until you get more than 99 hours, at which point the SAS format will probably overflow and display a series of asterisks.&lt;/P&gt;
&lt;P&gt;So, after import, you should do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;timevar = mod(timevar,86400);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to get rid of the "hidden dates".&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 05:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-time-format/m-p/477331#M122915</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-12T05:43:25Z</dc:date>
    </item>
  </channel>
</rss>

