[issue7789] Issue using datetime with format()
Eric Smith
report at bugs.python.org
Tue Jan 26 20:57:10 CET 2010
Eric Smith <eric at trueblade.com> added the comment:
I don't think this is documented (that I can find, at least), so I'll assign it to Georg.
I think the correct thing to do is something like this, in the datetime, date, and time object descriptions:
date.__format__(fmt)
For a date d, format(d, fmt) is equivalent to d.strftime(fmt).
Ditto for date.__format__. But maybe there's a better, more obvious place to document this.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7789>
_______________________________________
More information about the Python-bugs-list
mailing list