This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2020年02月03日 09:46 by Jairo Vadillo, last changed 2022年04月11日 14:59 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg361274 - (view) | Author: Jairo Vadillo (Jairo Vadillo) | Date: 2020年02月03日 09:46 | |
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-1100033.16)] on darwin > datetime.strftime(datetime.now().replace(year=100), "%Y-%m-%d") '0100-02-03' But on Linux...: Python 3.7.6 (default, Jan 3 2020, 23:35:31) [GCC 8.3.0] on linux > datetime.strftime(datetime.now().replace(year=100), "%Y-%m-%d") '100-02-03' This causes a lot of trouble when storing and then retrieving string dates from any string based storage. |
|||
| msg361281 - (view) | Author: Mark Dickinson (mark.dickinson) * (Python committer) | Date: 2020年02月03日 11:36 | |
Closing as a duplicate of #13305. Feel free to add to the discussion there if you disagree with the resolution of that issue. |
|||
| msg361282 - (view) | Author: Mark Dickinson (mark.dickinson) * (Python committer) | Date: 2020年02月03日 11:37 | |
> if you disagree with the resolution of that issue Sorry, my mistake. That issue is still open. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:59:26 | admin | set | github: 83717 |
| 2020年02月03日 11:38:20 | mark.dickinson | set | superseder: datetime.strftime("%Y") not consistent for years < 1000 |
| 2020年02月03日 11:37:17 | mark.dickinson | set | messages: + msg361282 |
| 2020年02月03日 11:36:14 | mark.dickinson | set | status: open -> closed nosy: + mark.dickinson messages: + msg361281 resolution: duplicate stage: resolved |
| 2020年02月03日 09:52:00 | pmpp | set | nosy:
+ pmpp |
| 2020年02月03日 09:46:56 | Jairo Vadillo | create | |