Message138697
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. |
|
Date |
User |
Action |
Args |
2011-06-20 10:44:20 | vstinner | set | recipients:
+ vstinner, olrait |
2011-06-20 10:44:20 | vstinner | set | messageid: <1308566660.71.0.0825924568263.issue12371@psf.upfronthosting.co.za> |
2011-06-20 10:44:20 | vstinner | link | issue12371 messages |
2011-06-20 10:44:20 | vstinner | create | |
|