Message8650

Author pekka.klarck
Recipients pekka.klarck
Date 2014-06-16.14:05:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402927536.12.0.76265846811.issue2166@psf.upfronthosting.co.za>
In-reply-to
Content
Support for %f (microseconds) directive was added in Python 2.6. On Jython 2.7 beta 2 it seems to be supported with datetime.strftime, but with datetime.strptime microseconds are silently ignored.

Jython 2.7b2 (default:a5bc0032cf79+, Apr 22 2014, 21:20:17) 
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_55
Type "help", "copyright", "credits" or "license" for more information.
>>> from datetime import datetime
>>> datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')
'2014-06-16 17:03:58.483000'
>>> datetime.strptime('2014-06-16 17:03:58.483000', '%Y-%m-%d %H:%M:%S.%f')
datetime.datetime(2014, 6, 16, 17, 3, 58)
History
Date User Action Args
2014-06-16 14:05:36pekka.klarcksetrecipients: + pekka.klarck
2014-06-16 14:05:36pekka.klarcksetmessageid: <1402927536.12.0.76265846811.issue2166@psf.upfronthosting.co.za>
2014-06-16 14:05:36pekka.klarcklinkissue2166 messages
2014-06-16 14:05:35pekka.klarckcreate