Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parseW3CTDF() and ms #165

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

parseW3CTDF() and ms #165

Tetranos opened this issue May 18, 2011 · 0 comments

Comments

@Tetranos
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant