STINNER Victor <victor.stin...@haypocalc.com> 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.

----------
nosy: +haypo
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12371>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to