<?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: TIMEPART function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596974#M171979</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&lt;BR /&gt;Iam having date valus as "25JAN2019:13:30:59.590000" in one of the SAS dataset.&lt;BR /&gt;and iam using timepart(25JAN2019:13:30:59.590000) function and format and informat as tim8.&lt;BR /&gt;Iam getting below time value&lt;BR /&gt;13:31:38&lt;BR /&gt;Iam unable to understand why 59 is getting changed to 38 please.please help how it reallly works&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would expect to see a 13:31:00 if some rounding went on but strongly suspect some other manipulation to get 38 seconds.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 16:26:51 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-10-16T16:26:51Z</dc:date>
    <item>
      <title>TIMEPART function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596794#M171886</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;Iam having date valus as "25JAN2019:13:30:59.590000" in one of the SAS dataset.&lt;BR /&gt;and iam using timepart(25JAN2019:13:30:59.590000) function and format and informat as tim8.&lt;BR /&gt;Iam getting below time value&lt;BR /&gt;13:31:38&lt;BR /&gt;Iam unable to understand why 59 is getting changed to 38 please.please help how it reallly works&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 09:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596794#M171886</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-10-16T09:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: TIMEPART function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596796#M171888</link>
      <description>&lt;P&gt;Please post your entire code. This works fine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    dt="25JAN2019:13:30:59.590000"dt;
    t=timepart(dt);
    put dt= // t= time8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Oct 2019 10:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596796#M171888</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-16T10:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: TIMEPART function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596920#M171946</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;the function is used in SAS DI in table loader transformation with timepart() and informat and format as "TIME8.".&lt;/P&gt;&lt;P&gt;so i just wanted to know how&amp;nbsp;timepart(25JAN2019:13:30:59.590000) is giving result as below for fomar and informat time8.is this correct please.iam trying to under stand how 13:31:38 is getting created from above date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;13:31:38&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 14:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596920#M171946</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2019-10-16T14:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: TIMEPART function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596956#M171967</link>
      <description>&lt;P&gt;The TIMEPART() function is NOT the issue.&lt;/P&gt;
&lt;P&gt;Look for the answer somewhere else.&lt;/P&gt;
&lt;P&gt;Are you sure about the original value.&lt;/P&gt;
&lt;P&gt;How did you convert that string into a datetime value.&lt;/P&gt;
&lt;P&gt;Did you perhaps store it into a SAS variable that used less than the full 8 bytes to store the value?&amp;nbsp; That can cause some loss of precision on numbers.&amp;nbsp; The number of seconds that are stored for that datetime value is:&amp;nbsp;&amp;nbsp;1,864,042,259.590000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 15:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596956#M171967</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-16T15:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: TIMEPART function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596974#M171979</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/256123"&gt;@JJP1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&lt;BR /&gt;Iam having date valus as "25JAN2019:13:30:59.590000" in one of the SAS dataset.&lt;BR /&gt;and iam using timepart(25JAN2019:13:30:59.590000) function and format and informat as tim8.&lt;BR /&gt;Iam getting below time value&lt;BR /&gt;13:31:38&lt;BR /&gt;Iam unable to understand why 59 is getting changed to 38 please.please help how it reallly works&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would expect to see a 13:31:00 if some rounding went on but strongly suspect some other manipulation to get 38 seconds.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 16:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/TIMEPART-function/m-p/596974#M171979</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-16T16:26:51Z</dc:date>
    </item>
  </channel>
</rss>

