You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is my current workaround as I don't need the precision - I just need to be able to accept the date and do a rough calculation:
s = "2019-08-14T15:37:11.9999995+01:00"
bad_millis = [".9999995", ".9999996", ".9999997", ".9999998", ".9999999"]
for bad_milli in bad_millis:
s = s.replace(bad_milli, ".9999994")
t = arrow.get(s)
We need to add a conditional to account for the case in which it overflows from 999999 to 1000000 to zero out the subseconds and increment the seconds.
If you'd like to take a whack at this issue, feel free to submit a PR. Any help is appreciated :).
I get the following error if I try to parse a date with a timestamp that has over 6 digits in the fractional second and is also over 999999:
Example inputs:
2019-08-14T15:37:11.9999995+01:00
,2019-08-14T15:37:11.9999996+01:00
but not2019-08-14T15:37:11.9999994+01:00
Arrow version: 0.14.5
Python version: 3.7.3
Seems related to #341 but not quite the same issue.
The text was updated successfully, but these errors were encountered: