diff options
author | TW <tw@waldmann-edv.de> | 2022-08-28 21:27:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-28 21:27:42 (GMT) |
commit | 023c51d9d8e2fd91069eea2bf12e373f1c71e9d2 (patch) | |
tree | cdd0d6e04e5788ee2fd54faa2dbb4fc6586d8337 /Python/frame.c | |
parent | e860e521ec0d84e175269aeb15cf24bd6053ad17 (diff) | |
download | cpython-023c51d9d8e2fd91069eea2bf12e373f1c71e9d2.zip cpython-023c51d9d8e2fd91069eea2bf12e373f1c71e9d2.tar.gz cpython-023c51d9d8e2fd91069eea2bf12e373f1c71e9d2.tar.bz2 |
gh-69142: add %:z strftime format code (gh-95983)
datetime.isoformat generates the tzoffset with colons, but there
was no format code to make strftime output the same format.
for simplicity and consistency the %:z formatting behaves mostly
as %z, with the exception of adding colons. this includes the
dynamic behaviour of adding seconds and microseconds only when
needed (when not 0).
this fixes the still open "generate" part of this issue:
https://github.com/python/cpython/issues/69142
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Diffstat (limited to 'Python/frame.c')
0 files changed, 0 insertions, 0 deletions