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
ISO 8601 supports nanosecond level formats. For compatibility with implementations which utilize nanoseconds, its difficult to work around this incompatibility.
I realize the documentation mentions "fractional seconds are limited to microseconds", but no rationale is given for not aligning with the ISO 8601 precision.
The text was updated successfully, but these errors were encountered:
datetime objects only supports microsecond precision see. The isodate library parses the format then creates a datatime objects date, datetime, and time. timedelta do include milliseconds. The incompatibility is the Python standard library not supporting more precise divisions of the seconds.
isodate has its own Duration class, which could be extended. There would still be conversion issues from Duration to timedelta.
Edit: Python 3.7 PEP 564 added nanoseconds functions. This does not impact what I discussed above. It added functions but did not seem to change existing functions. Provided for context.
ISO 8601 supports nanosecond level formats. For compatibility with implementations which utilize nanoseconds, its difficult to work around this incompatibility.
I realize the documentation mentions "fractional seconds are limited to microseconds", but no rationale is given for not aligning with the ISO 8601 precision.
The text was updated successfully, but these errors were encountered: