-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
tryparse
throws an InexactError
in millisecond DateFormat
#44003
Comments
fredrikekre
pushed a commit
that referenced
this issue
Feb 3, 2022
fredrikekre
added
backport 1.6
Change should be backported to release-1.6
backport 1.7
and removed
backport 1.6
Change should be backported to release-1.6
backport 1.7
labels
Feb 3, 2022
LilithHafner
pushed a commit
to LilithHafner/julia
that referenced
this issue
Feb 22, 2022
LilithHafner
pushed a commit
to LilithHafner/julia
that referenced
this issue
Mar 8, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using the date format
"s"
,tryparse
throws anInexactError
in the case the input is not parsable as milliseconds. Thethrow InexactError
was introduced in #22198 following issue #22100. I suppose we could simply returnnothing
instead of throwing here? 🙂julia/stdlib/Dates/src/io.jl
Line 153 in a0093d2
Example:
I created a PR for this change: #44004
The text was updated successfully, but these errors were encountered: