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
The %z directive supports the UTC offset in the form ±HHMM[SS[.ffffff]]. Other parsing functions like fromisoformat on the other hand support the full format ±HH[MM[SS[.ffffff]]]. So there is no strptime format that supports the fromisoformat.
fromdatetimeimportdatetimedatetime.fromisoformat("2023-05-25T15:35:05.666+01") # okdatetime.strptime("2023-05-25T15:35:05.666+01", "%Y-%m-%dT%:H%:M%S.%f%z") # nok
The same may apply to %:z.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
The text was updated successfully, but these errors were encountered:
Feature or enhancement
Proposal:
The
%z
directive supports the UTC offset in the form ±HHMM[SS[.ffffff]]. Other parsing functions likefromisoformat
on the other hand support the full format ±HH[MM[SS[.ffffff]]]. So there is no strptime format that supports thefromisoformat
.The same may apply to
%:z
.Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
The text was updated successfully, but these errors were encountered: