Skip to content
Permalink
Browse files
[c] (0) Limit the number of digits in the fraction part of a seconds …
…time component to 3, since more than that and you lose precision when converting to milliseconds, e.g. for use with Date objects in the API.

Affected topics: HTML

git-svn-id: http://svn.whatwg.org/webapps@6892 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 11, 2012
1 parent 66eb4db commit 22bec57613d5291b6c173f1fce8e97f9208602b7
Showing with 9 additions and 9 deletions.
  1. +3 −3 complete.html
  2. +3 −3 index
  3. +3 −3 source
@@ -5757,7 +5757,7 @@ <h5 id=times><span class=secno>2.5.5.4 </span>Times</h5>

<ol><li>A 002E FULL STOP character (.)</li>

<li>One or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing the
<li>One, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing the
fractional part of <var title="">second</var></li>

</ol></li>
@@ -6393,7 +6393,7 @@ <h5 id=durations><span class=secno>2.5.5.9 </span>Durations</h5>
number of seconds.</li>

<li><p>Optionally, a U+002E FULL STOP character (.) followed
by one or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
by one, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
fraction of a second.</li>

<li><p>A U+0053 LATIN CAPITAL LETTER S character.</li>
@@ -6428,7 +6428,7 @@ <h5 id=durations><span class=secno>2.5.5.9 </span>Durations</h5>

<li><p>If the <a href=#duration-time-component-scale>duration time component scale</a>
specified is 1 (i.e. the units are seconds), then, optionally, a
U+002E FULL STOP character (.) followed by one or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
U+002E FULL STOP character (.) followed by one, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
fraction of a second.</li>

<li><p>Zero or more <a href=#space-character title="space character">space
6 index
@@ -5757,7 +5757,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<ol><li>A 002E FULL STOP character (.)</li>

<li>One or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing the
<li>One, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing the
fractional part of <var title="">second</var></li>

</ol></li>
@@ -6393,7 +6393,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
number of seconds.</li>

<li><p>Optionally, a U+002E FULL STOP character (.) followed
by one or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
by one, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
fraction of a second.</li>

<li><p>A U+0053 LATIN CAPITAL LETTER S character.</li>
@@ -6428,7 +6428,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<li><p>If the <a href=#duration-time-component-scale>duration time component scale</a>
specified is 1 (i.e. the units are seconds), then, optionally, a
U+002E FULL STOP character (.) followed by one or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
U+002E FULL STOP character (.) followed by one, two, or three <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing a
fraction of a second.</li>

<li><p>Zero or more <a href=#space-character title="space character">space
6 source
@@ -5145,7 +5145,7 @@ is conforming depends on which specs apply, and leaves it at that. -->

<li>A 002E FULL STOP character (.)</li>

<li>One or more <span
<li>One, two, or three <span
title="concept-datetime-digit">digits</span>, representing the
fractional part of <var title="">second</var></li>

@@ -5963,7 +5963,7 @@ is conforming depends on which specs apply, and leaves it at that. -->
number of seconds.</p></li>

<li><p>Optionally, a U+002E FULL STOP character (.) followed
by one or more <span
by one, two, or three <span
title="concept-datetime-digit">digits</span>, representing a
fraction of a second.</p></li>

@@ -6010,7 +6010,7 @@ is conforming depends on which specs apply, and leaves it at that. -->

<li><p>If the <span>duration time component scale</span>
specified is 1 (i.e. the units are seconds), then, optionally, a
U+002E FULL STOP character (.) followed by one or more <span
U+002E FULL STOP character (.) followed by one, two, or three <span
title="concept-datetime-digit">digits</span>, representing a
fraction of a second.</p></li>

0 comments on commit 22bec57

Please sign in to comment.