[New-bugs-announce] [issue8903] datetime functions
anatoly techtonik
report at bugs.python.org
Sat Jun 5 08:48:27 CEST 2010
New submission from anatoly techtonik <techtonik at gmail.com>:
Current OOP API of datetime is ugly:
from datetime import datetime
print datetime.today().isoformat()
The proposal is to add today() and now() as module functions:
from datetime import today, now
print today()
# datetime.date(2010, 6, 5)
print now()
# datetime.datetime(2010, 6, 5, 9, 48, 4, 868000)
----------
components: Library (Lib)
messages: 107123
nosy: techtonik
priority: normal
severity: normal
status: open
title: datetime functions
versions: Python 3.1, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8903>
_______________________________________
More information about the New-bugs-announce
mailing list