Message8650
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) |
|
Date |
User |
Action |
Args |
2014-06-16 14:05:36 | pekka.klarck | set | recipients:
+ pekka.klarck |
2014-06-16 14:05:36 | pekka.klarck | set | messageid: <1402927536.12.0.76265846811.issue2166@psf.upfronthosting.co.za> |
2014-06-16 14:05:36 | pekka.klarck | link | issue2166 messages |
2014-06-16 14:05:35 | pekka.klarck | create | |
|