Alexander Belopolsky added the comment:
How hard is it to add
now = datetime.now
todate = date.today
at the top of your module is you really like shorter names?
-1
--
assignee: -> belopolsky
nosy: +belopolsky
priority: normal -> low
___
Python tr
New submission from anatoly techtonik :
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()
# da