Martin Panter <vadmium...@gmail.com> added the comment:

I think "ctime" and "asctime" are supposed to wrap or imitate the standard C 
functions: <https://port70.net/~nsz/c/c11/n1570.html#7.27.3.2>, so I think this 
is intended behaviour. But see Issue 13927 about improving the documentation.

For a single-digit day of the month, there is supposed to be two spaces. Using 
"%.2d" would produce "Sep02" or "Sep 02", with a leading zero. On the other 
hand, changing the double space to a single space would produce "Sep 2", 
without a leading zero.

----------
nosy: +martin.panter
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
superseder:  -> Extra spaces in the output of time.ctime

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34642>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to