Message361274
| Author |
Jairo Vadillo |
| Recipients |
Jairo Vadillo |
| Date |
2020年02月03日.09:46:56 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1580723216.73.0.692049460733.issue39536@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2020年02月03日 09:46:56 | Jairo Vadillo | set | recipients:
+ Jairo Vadillo |
| 2020年02月03日 09:46:56 | Jairo Vadillo | set | messageid: <1580723216.73.0.692049460733.issue39536@roundup.psfhosted.org> |
| 2020年02月03日 09:46:56 | Jairo Vadillo | link | issue39536 messages |
| 2020年02月03日 09:46:56 | Jairo Vadillo | create |
|