On 12/29/19, Johannes Bauer <dfnsonfsdu...@gmx.de> 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".

[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to