On 12/29/19, Johannes Bauer wrote:
>
x = d(1, 1, 1)
>
x.strftime("%Y-%m-%d")
> '1-01-01'
The default padding depends on the platform strftime. POSIX strftime
[1] supports an extension of ISO C that allows specifying the "0" pad
character and minimum field width, e.g. "%04Y-%02m-%02d".
Hi list,
I've just stumbled upon a strange phaenomenon and I'm wondering if it's
a bug. Short and sweet:
Python 3.7.3 (default, Oct 7 2019, 12:56:13)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import datetime as d
>>> x = d(1,