STINNER Victor added the comment:
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.
--
New submission from olrait :
Hello Everybody.
I write you because I found a bug in datetime.now(). (tested in Python 2.6.6
-r266:84297, Aug 24 2010, 18:46:32-win32) This bug is that sometime doesn´t
return milliseconds.
The code to reproduce the bug is: you have to wait a lot of time (from 20