[issue32195] datetime.strftime with %Y no longer outputs leading zeros

2017-12-01 Thread Ned Deily
Ned Deily added the comment: > Isn't this a duplicate of issue 13305? Looks like it, thanks, though I think the analysis still applies. Closing as duplicate. -- resolution: not a bug -> duplicate stage: -> resolved status: open -> closed superseder: ->

[issue32195] datetime.strftime with %Y no longer outputs leading zeros

2017-12-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Isn't this a duplicate of issue 13305? -- status: pending -> open ___ Python tracker

[issue32195] datetime.strftime with %Y no longer outputs leading zeros

2017-12-01 Thread Ned Deily
Ned Deily added the comment: As documented in the Python Library Reference: "The full set of format codes supported varies across platforms, because Python calls the platform C library’s strftime() function, and platform variations are common. To see the full set of format

[issue32195] datetime.strftime with %Y no longer outputs leading zeros

2017-12-01 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +ned.deily, ronaldoussoren ___ Python tracker ___

[issue32195] datetime.strftime with %Y no longer outputs leading zeros

2017-12-01 Thread Dave Challis
Dave Challis added the comment: My mistake, it appears to be related to the OS it's running on rather than the version (I just happened to test with different versions on different OSes). On Mac OS X (with 3.6.2): >>> import datetime >>>

[issue32195] datetime.strftime with %Y no longer outputs leading zeros

2017-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In what version datetime.strftime with %Y did output leading zeros? -- nosy: +belopolsky, serhiy.storchaka ___ Python tracker

[issue32195] datetime.strftime with %Y no longer outputs leading zeros

2017-12-01 Thread Dave Challis
New submission from Dave Challis : Tested in python 3.6.2: >>> import datetime >>> datetime.datetime.min.strftime('%Y') '1' Expected output: '0001' This means that strftime and strptime aren't necessarily symmetric, e.g.: >>>