[issue8913] Document that datetime.__format__ is datetime.strftime
Heikki Partanen added the comment: Added documentation for __format__ for datetime, time and date, and also added example code for using string.format. Seemed to merge cleanly to 3.4 and 2.7. -- keywords: +patch nosy: +heikki.partanen Added file: http://bugs.python.org/file27684/issue8913.patch ___ Python tracker <http://bugs.python.org/issue8913> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8913] Document that datetime.__format__ is datetime.strftime
Heikki Partanen added the comment: Thanks for the comments, Eric! I reworded the docs and improved the examples too (being stuck in 2.6 I didn't even know about the cool autonumbering :) -- Added file: http://bugs.python.org/file27782/issue8913-2.patch ___ Python tracker <http://bugs.python.org/issue8913> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8913] Document that datetime.__format__ is datetime.strftime
Heikki Partanen added the comment: Grammar fixed -- Added file: http://bugs.python.org/file27791/issue8913-3.patch ___ Python tracker <http://bugs.python.org/issue8913> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8913] Document that datetime.__format__ is datetime.strftime
Heikki Partanen added the comment: Improved the datetime example to have time part -- Added file: http://bugs.python.org/file29663/issue8913-4.patch ___ Python tracker <http://bugs.python.org/issue8913> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8913] Document that datetime.__format__ is datetime.strftime
Heikki Partanen added the comment: The examples in the previous patches were trying to show some "real-worldish" use cases, but I admit that they don't fit in that well to the existing examples shown in the docs. The new examples Ezio suggested are more straightforward and better in line with existing docs, so uploaded a new patch with updated examples. -- Added file: http://bugs.python.org/file29678/issue8913-5.patch ___ Python tracker <http://bugs.python.org/issue8913> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com