[Python-3000] format and datetime (original) (raw)
Guido van Rossum guido at python.org
Mon Sep 10 18:42:05 CEST 2007
- Previous message: [Python-3000] __format__ and datetime
- Next message: [Python-3000] __format__ and datetime
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 9/10/07, Eric Smith <eric+python-dev at trueblade.com> wrote:
I have a patch to add format to datetime.time, .date, and .datetime. For non-empty formatspec's, I just pass on to .strftime. For empty formatspec's, it returns str(self).
I think this is the only reasonable interpretation of formatspec's for datetime. Does anyone think otherwise?
+1
-- --Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-3000] __format__ and datetime
- Next message: [Python-3000] __format__ and datetime
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]