-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Date.fromString not implemented in VM #1728
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
Comments
I've found the need for this as well. Especially support for parsing ISO 8601 would be nice to have. |
Date.fromString is partially implemented, e.g., in VM the following works: Please provide strings that are not parseable. |
Marked this as being blocked by #1878. |
I would like the following to be parsable. 2012-02-21T12:00:16.371867Z |
Florian, can you please have a look at this or comment? Set owner to @floitschG. |
working on it. Added Accepted label. |
Thank you! :) |
When we encounter a bad date, I see this output: Unhandled exception: It would be nice if it could print something along the lines of "DateImplementation.fromString" failed to parse '<the-date>'" so I can debug it better. This should of cause be an Exception one day. :) Thank you,
|
Just committed r4923. Hmm. just saw that ajohnsen was requesting 6 digits after the comma. I will see if I can cook up a patch for that. (Currently there are only 5 digits allowed). In any case the additional digits don't add any precision, since we round to the closest ms. Removed the owner. |
This comment was originally written by [email protected] Thank you for working on this! The date I have is from svn log --xml. I can trim it myself, but it's just nice if the most used formats works as-is. |
Sorry it took so long. Afaics the output (example: "2012-03-30T04:28:13.752341Z") is legal ISO 8601. So I will update the date parser so it accepts this input, too. Added Accepted label. |
Set owner to @floitschG. |
With r7648 up to 6 digits are now parsed after the decimal point. |
I will close this bug for now. If we decide to change what Date parsing should accept we will implement it, or open a new bug. Added Fixed label. |
Our sample app is developed with Editor and tested in Dartium. We found that Date.fromString is not yet implemented.
This would be very nice to have.
The text was updated successfully, but these errors were encountered: