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 vstinner
Recipients olrait, vstinner
Date 2011-06-20.10:44:20
SpamBayes Score 0.0037115656
Marked as misclassified No
Message-id <1308566660.71.0.0825924568263.issue12371@psf.upfronthosting.co.za>
In-reply-to
Content
str(datetime object) doesn't contain a dot if obj.microsecond equals zero. You can use obj=obj.replace(microsecond=0) to create a new datetime object using microsecond=0. Or just test that str(obj) contains a dot or not.

It is not a bug in Python.
History
Date User Action Args
2011-06-20 10:44:20vstinnersetrecipients: + vstinner, olrait
2011-06-20 10:44:20vstinnersetmessageid: <1308566660.71.0.0825924568263.issue12371@psf.upfronthosting.co.za>
2011-06-20 10:44:20vstinnerlinkissue12371 messages
2011-06-20 10:44:20vstinnercreate