Message6288

Author monojohnny
Recipients monojohnny
Date 2010-12-20.14:51:46
SpamBayes Score 0.00013665984
Marked as misclassified No
Message-id <1292856706.67.0.28696601833.issue1689@psf.upfronthosting.co.za>
In-reply-to
Content
The following code-snippet fails to see the microseconds portion of a datetime:

-- CUT HERE --
from datetime import datetime
dt=datetime.now()
dt.strftime("%Y-%m-%d %H:%M:%S")+","+dt.strftime("%f")
-- CUT HERE --
-- RESULT FROM JYTHON 2.5.1:
'2010-12-20 14:37:04,'%f'

This is the output from cpython (actually release 2.6 - so not testing like with like?):

-- RESULT FROM CPYTHON 2.6.2
'2010-12-20 14:37:33,884'
History
Date User Action Args
2010-12-20 14:51:46monojohnnysetrecipients: + monojohnny
2010-12-20 14:51:46monojohnnysetmessageid: <1292856706.67.0.28696601833.issue1689@psf.upfronthosting.co.za>
2010-12-20 14:51:46monojohnnylinkissue1689 messages
2010-12-20 14:51:46monojohnnycreate