This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author techtonik
Recipients techtonik
Date 2010-06-05.06:48:25
SpamBayes Score 0.013972163
Marked as misclassified No
Message-id <1275720507.31.0.185559003971.issue8903@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2010-06-05 06:48:27techtoniksetrecipients: + techtonik
2010-06-05 06:48:27techtoniksetmessageid: <1275720507.31.0.185559003971.issue8903@psf.upfronthosting.co.za>
2010-06-05 06:48:26techtoniklinkissue8903 messages
2010-06-05 06:48:25techtonikcreate