Message138689
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
minutes to 2 hours)
from datetime import datetime
while True:
a=str(datetime.now())
try:
b=a.split(".")[1]
print b
except:
print "exception a=%s (if you see in this case there
are not the milliseconds) " % (str(a))
break
I new in this . Programing and python specially.
Best Regards
Martin Maqueira |
File name |
Uploaded |
unnamed
|
olrait,
2011-06-20.07:41:56
|
|
Date |
User |
Action |
Args |
2011-06-20 07:41:58 | olrait | set | recipients:
+ olrait |
2011-06-20 07:41:57 | olrait | link | issue12371 messages |
2011-06-20 07:41:57 | olrait | create | |
|