hixie: Define how to convert a time to a Date object if it's not a round number of milliseconds. (whatwg r6893)

hixie: Define how to convert a time to a Date object if it's not a round
number of milliseconds. (whatwg r6893)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5490&r2=1.5491&f=h
http://html5.org/tools/web-apps-tracker?from=6892&to=6893

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5490
retrieving revision 1.5491
diff -u -d -r1.5490 -r1.5491
--- Overview.html 11 Jan 2012 23:14:59 -0000 1.5490
+++ Overview.html 12 Jan 2012 00:03:15 -0000 1.5491
@@ -320,7 +320,7 @@
 
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-11-january-2012">Editor's Draft 11 January 2012</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-12-january-2012">Editor's Draft 12 January 2012</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -467,7 +467,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 11 January 2012 Editor's Draft.
+  This specification is the 12 January 2012 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -3302,6 +3302,20 @@
     is passed an Infinity or Not-a-Number (NaN) value, a
     <code><a href="#notsupportederror">NotSupportedError</a></code> exception must be raised.</p>
 
+    <p>When this specification requires a user agent to <dfn id="create-a-date-object">create a
+    <code>Date</code> object</dfn> representing a particular time, the
+    milliseconds component of that time, if any, must be truncated to
+    an integer and the time value of the newly created
+    <code>Date</code> object must represent the time after that
+    truncation.</p>
+
+    <p class="example">For instance, given the time 23045 millionths
+    of a second after 01:00 UTC on January 1st 2000, i.e. the time
+    2000-01-01T00:00:00.023045Z, then the <code>Date</code> object
+    created representing that time would represent the same time as
+    that created representing the time 2000-01-01T00:00:00.023Z, 45
+    millionths earlier.</p>
+
    </dd>
 
    <dt>Typed Arrays</dt>
@@ -24429,8 +24443,9 @@
   <a href="#timeline-offset">timeline offset</a> must be set to Not-a-Number (NaN).</p>
 
   <p>The <dfn id="dom-media-startoffsettime" title="dom-media-startOffsetTime"><code>startOffsetTime</code></dfn>
-  attribute must return a new <code>Date</code> object representing
-  the current <a href="#timeline-offset">timeline offset</a>.</p>
+  attribute must return <a href="#create-a-date-object" title="create a Date object">a new
+  <code>Date</code> object</a> representing the current
+  <a href="#timeline-offset">timeline offset</a>.</p>
 
   </div><hr><p>The <dfn id="attr-media-loop" title="attr-media-loop"><code>loop</code></dfn>
   attribute is a <a href="#boolean-attribute">boolean attribute</a> that, if specified,
@@ -35450,9 +35465,9 @@
   string to a <code>Date</code> object</a>, given a string <var title="">input</var>, is as follows</strong>: If <a href="#parse-a-global-date-and-time-string" title="parse
   a global date and time string">parsing a global date and time</a>
   from <var title="">input</var> results in an error, then return an
-  error; otherwise, return a <code>Date</code> object representing the
-  parsed <a href="#concept-datetime" title="concept-datetime">global date and time</a>,
-  expressed in UTC.</p>
+  error; otherwise, return <a href="#create-a-date-object" title="create a Date object">a new
+  <code>Date</code> object</a> representing the parsed <a href="#concept-datetime" title="concept-datetime">global date and time</a>, expressed in
+  UTC.</p>
 
   <p><strong>The <a href="#concept-input-value-date-string" title="concept-input-value-date-string">algorithm to convert a
   <code>Date</code> object to a string</a>, given a
@@ -35621,9 +35636,8 @@
   <p><strong>The <a href="#concept-input-value-string-date" title="concept-input-value-string-date">algorithm to convert a
   string to a <code>Date</code> object</a>, given a string <var title="">input</var>, is as follows</strong>: If <a href="#parse-a-date-string" title="parse
   a date string">parsing a date</a> from <var title="">input</var>
-  results in an error, then return an error; otherwise, return a
-  <code>Date</code> object representing midnight UTC on the morning of
-  the parsed <a href="#concept-date" title="concept-date">date</a>.</p>
+  results in an error, then return an error; otherwise, return <a href="#create-a-date-object" title="create a Date object">a new <code>Date</code> object</a>
+  representing midnight UTC on the morning of the parsed <a href="#concept-date" title="concept-date">date</a>.</p>
 
   <p><strong>The <a href="#concept-input-value-date-string" title="concept-input-value-date-string">algorithm to convert a
   <code>Date</code> object to a string</a>, given a
@@ -35750,8 +35764,9 @@
   <p><strong>The <a href="#concept-input-value-string-date" title="concept-input-value-string-date">algorithm to convert a
   string to a <code>Date</code> object</a>, given a string <var title="">input</var>, is as follows</strong>: If <a href="#parse-a-month-string" title="parse
   a month string">parsing a month</a> from <var title="">input</var> results in an error, then return an error;
-  otherwise, return a <code>Date</code> object representing midnight
-  UTC on the morning of the first day of the parsed <a href="#concept-month" title="concept-month">month</a>.</p>
+  otherwise, return <a href="#create-a-date-object" title="create a Date object">a new
+  <code>Date</code> object</a> representing midnight UTC on the
+  morning of the first day of the parsed <a href="#concept-month" title="concept-month">month</a>.</p>
 
   <p><strong>The <a href="#concept-input-value-date-string" title="concept-input-value-date-string">algorithm to convert a
   <code>Date</code> object to a string</a>, given a
@@ -35879,9 +35894,9 @@
   <p><strong>The <a href="#concept-input-value-string-date" title="concept-input-value-string-date">algorithm to convert a
   string to a <code>Date</code> object</a>, given a string <var title="">input</var>, is as follows</strong>: If <a href="#parse-a-week-string" title="parse
   a week string">parsing a week</a> from <var title="">input</var>
-  results in an error, then return an error; otherwise, return a
-  <code>Date</code> object representing midnight UTC on the morning of
-  the Monday of the parsed <a href="#concept-week" title="concept-week">week</a>.</p>
+  results in an error, then return an error; otherwise, return <a href="#create-a-date-object" title="create a Date object">a new <code>Date</code> object</a>
+  representing midnight UTC on the morning of the Monday of the parsed
+  <a href="#concept-week" title="concept-week">week</a>.</p>
 
   <p><strong>The <a href="#concept-input-value-date-string" title="concept-input-value-date-string">algorithm to convert a
   <code>Date</code> object to a string</a>, given a
@@ -36004,8 +36019,9 @@
   <p><strong>The <a href="#concept-input-value-string-date" title="concept-input-value-string-date">algorithm to convert a
   string to a <code>Date</code> object</a>, given a string <var title="">input</var>, is as follows</strong>: If <a href="#parse-a-time-string" title="parse
   a time string">parsing a time</a> from <var title="">input</var>
-  results in an error, then return an error; otherwise, return a
-  <code>Date</code> object representing the parsed <a href="#concept-time" title="concept-time">time</a> in UTC on 1970-01-01.</p>
+  results in an error, then return an error; otherwise, return <a href="#create-a-date-object" title="create a Date object">a new <code>Date</code> object</a>
+  representing the parsed <a href="#concept-time" title="concept-time">time</a> in
+  UTC on 1970-01-01.</p>
 
   <p><strong>The <a href="#concept-input-value-date-string" title="concept-input-value-date-string">algorithm to convert a
   <code>Date</code> object to a string</a>, given a

Received on Thursday, 12 January 2012 00:03:40 UTC