[Python-3000] format and datetime (original) (raw)
Eric Smith eric+python-dev at trueblade.com
Mon Sep 10 16:51:21 CEST 2007
- Previous message: [Python-3000] patch: bytes object PyBUF_LOCKDATA read-only and immutable support
- Next message: [Python-3000] __format__ and datetime
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have a patch to add format to datetime.time, .date, and .datetime. For non-empty format_spec's, I just pass on to .strftime. For empty format_spec's, it returns str(self).
I think this is the only reasonable interpretation of format_spec's for datetime. Does anyone think otherwise?
Eric.
- Previous message: [Python-3000] patch: bytes object PyBUF_LOCKDATA read-only and immutable support
- Next message: [Python-3000] __format__ and datetime
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]