[docs] [issue8913] Document that datetime.__format__ is datetime.strftime

Éric Araujo report at bugs.python.org
Sun Jun 6 23:42:36 CEST 2010


Éric Araujo <merwok at netwok.org> added the comment:

I think this particular wheel has one very good reinvention as the Locale Data Markup Language specification. Example from the Python Babel package:

>>> format_datetime(dt, "yyyyy.MMMM.dd GGG hh:mm a", locale='en')
u'02007.April.01 AD 03:30 PM'

http://unicode.org/reports/tr35/#Date_Format_Patterns
http://babel.edgewall.org/wiki/Documentation/dates.html#pattern-syntax

----------
nosy: +merwok

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8913>
_______________________________________


More information about the docs mailing list