<?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 Store Date Milliseconds in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212857#M39315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to store a timestamp on a SAS Dataset date column that will contain milliseconds as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 10:03:20 GMT</pubDate>
    <dc:creator>arnouxvr</dc:creator>
    <dc:date>2015-05-11T10:03:20Z</dc:date>
    <item>
      <title>Store Date Milliseconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212857#M39315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to store a timestamp on a SAS Dataset date column that will contain milliseconds as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 10:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212857#M39315</guid>
      <dc:creator>arnouxvr</dc:creator>
      <dc:date>2015-05-11T10:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Store Date Milliseconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212858#M39316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See:&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="175028" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/" modifiedtitle="true" title="how to read millisecond"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 10:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212858#M39316</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-05-11T10:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Store Date Milliseconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212859#M39317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. Date type variable (integer) is different with DateTime(double) type variable. You should firstly know what kind of variable you should use&amp;nbsp; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: xia keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 12:04:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212859#M39317</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-05-11T12:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Store Date Milliseconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212860#M39318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just want to make sure about the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;data timestamp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; date1 = date();&lt;/P&gt;&lt;P&gt;&amp;nbsp; date2 = datetime();&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date1 contains the number of days from 1 JAN 1960 and date2 contains the number of seconds from midnight 1 JAN 1960. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I create a variable date3 that contains the number of milliseconds from 1 JAN 1960?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 12:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212860#M39318</guid>
      <dc:creator>arnouxvr</dc:creator>
      <dc:date>2015-05-11T12:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Store Date Milliseconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212861#M39319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You first have to convert a date column (days from 01jan1960) to a datetime column (seconds from 01jan1960:00:00:00), then you can use the fractional part of the datetime value to store fractions of a second. Use datetime23.3 as format to display milliseconds.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 12:21:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212861#M39319</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-05-11T12:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Store Date Milliseconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212862#M39320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you only want to display the total number of milliseconds, just multiply the datetime value by 1000. And use a simple numerical format instead of a datetime format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 12:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212862#M39320</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-05-11T12:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Store Date Milliseconds</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212863#M39321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks KurtBremser,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like it is working when I create two data steps in order to "delay" execution I can see that the timestamp per millisecond is different. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data time1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; date1 = datetime();&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data time2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; date1 = datetime();&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data time;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set time1 time2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format date: datetime23.3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc print;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 12:32:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Store-Date-Milliseconds/m-p/212863#M39321</guid>
      <dc:creator>arnouxvr</dc:creator>
      <dc:date>2015-05-11T12:32:31Z</dc:date>
    </item>
  </channel>
</rss>

