[New-bugs-announce] [issue13927] Extra spaces in the output of time.ctime
report at bugs.python.org
Thu Feb 2 21:49:36 CET 2012
New submission from Roger Caldwell <roger at monkey.net>:
Hi. I found this today and thought I would report. I could not find anywhere that it was expected behavior. When using time.ctime() to convert a date which only has 1 digit in the day position it returs a string with 2 spaces after the month vs one.
In : import os,time
In : time.ctime(os.path.getmtime('file.cfg'))
Out: 'Tue Dec 13 18:52:58 2011'
In : time.ctime(os.path.getmtime('14d-1.log'))
Out: 'Tue Feb 1 19:53:11 2011'
Is this expected behavior?
title: Extra spaces in the output of time.ctime
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce