Skip to content

parseW3CTDF() and ms #165

Open
Tetranos opened this Issue May 18, 2011 · 0 comments

1 participant

@Tetranos

The parseW3CDTF() method gives a bad result with the following string : "2011-04-11T22:03:44.578125Z".

As mentionned by the W3C (http://www.w3.org/TR/NOTE-datetime), the number after the "." is a decimal fraction of a second and not milliseconds.

The parseW3CDTF() method interprets this number as milliseconds and :
578125 ms
= 578 s + 125 ms
= 9 min + 578 s + 125 ms

It should be interpreted like this :
0.578125 s
= 578 ms + 0.000125 s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.