<?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 TIMEPART in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/TIMEPART/m-p/107972#M30097</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have time like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME&lt;/P&gt;&lt;P&gt;23AUG2013:15:12:00.000&lt;/P&gt;&lt;P&gt;28AUG2013:19:22:00.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i want to remove the record where timpepart is zeros.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;where timepart(TIME) ne 0));&amp;nbsp;&amp;nbsp; /*why just a single zero is enough*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Courier New;"&gt;why cant I do:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;where timepart(TIME) ne &lt;SPAN style="color: #ff00ff;"&gt;00:00:00.000&lt;/SPAN&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Oct 2013 15:30:21 GMT</pubDate>
    <dc:creator>robertrao</dc:creator>
    <dc:date>2013-10-09T15:30:21Z</dc:date>
    <item>
      <title>TIMEPART</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/TIMEPART/m-p/107972#M30097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have time like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME&lt;/P&gt;&lt;P&gt;23AUG2013:15:12:00.000&lt;/P&gt;&lt;P&gt;28AUG2013:19:22:00.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i want to remove the record where timpepart is zeros.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;where timepart(TIME) ne 0));&amp;nbsp;&amp;nbsp; /*why just a single zero is enough*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 10pt; font-family: Courier New;"&gt;why cant I do:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;where timepart(TIME) ne &lt;SPAN style="color: #ff00ff;"&gt;00:00:00.000&lt;/SPAN&gt;));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 15:30:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/TIMEPART/m-p/107972#M30097</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2013-10-09T15:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: TIMEPART</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/TIMEPART/m-p/107973#M30098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS stores dates, time and datetime values as numeric. It is merely a format that converts the value to something meaningful to the human.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A date, is the number of days since 01JAN1960&lt;/P&gt;&lt;P&gt;A time, is the number of seconds(floats for fractions of seconds) since 00:00:00.000&lt;/P&gt;&lt;P&gt;A datetime, is the number of seconds since 01JAN1960:00:00:00.000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date="01FEB2011"d;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put date=; /* shows the unformated value of date, that is the number of days between 01jan1960 and 01feb2011 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; time="00:10:05.03"t;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put time=; /* shows the unformated number of seconds since 00:00:00.000 after 10 minutes 5 seconds and .03 hundredth of seconds */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datetime="01FEB2011:00:10:05.03"dt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put datetime=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So 00:00:00.000 is not an interpretable number by SAS. You could do where timepart(time) NE "00:00:00.000"t; but then that would simply be you asking SAS to convert "00:00:00.000" to its own representation of counting seconds. Since it is known/documented how it is counted, we know it's equal to 0 in its internal representation and thus simply write where timepart(time) NE 0;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 15:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/TIMEPART/m-p/107973#M30098</guid>
      <dc:creator>Vince28_Statcan</dc:creator>
      <dc:date>2013-10-09T15:45:42Z</dc:date>
    </item>
  </channel>
</rss>

