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
{{ message }}
Repository navigation
Datetime strftime: %Y exports years < 1000 with 3 digits instead of 4 on Linux #83717
bpo-13305: datetime.strftime("%Y") not consistent for years < 1000
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-02-03.11:36:14.670>created_at=<Date2020-02-03.09:46:56.720>labels= ['3.7', 'type-bug', 'library']
title='Datetime strftime: %Y exports years < 1000 with 3 digits instead of 4 on Linux'updated_at=<Date2020-02-03.11:38:20.608>user='https://bugs.python.org/JairoVadillo'
Activity
JairoVadillo commentedon Feb 3, 2020
This two examples are pretty simple.
On MacOS stftime %Y works as expected, retrieving 4 digits:
Python 3.7.6 (default, Dec 30 2019, 19:38:26)
[Clang 11.0.0 (clang-1100.0.33.16)] on darwin
But on Linux...:
Python 3.7.6 (default, Jan 3 2020, 23:35:31)
[GCC 8.3.0] on linux
This causes a lot of trouble when storing and then retrieving string dates from any string based storage.
mdickinson commentedon Feb 3, 2020
Closing as a duplicate of bpo-13305. Feel free to add to the discussion there if you disagree with the resolution of that issue.
mdickinson commentedon Feb 3, 2020
Sorry, my mistake. That issue is still open.