Message8912

Author jeff.allen
Recipients jeff.allen, pekka.klarck, santa4nt, zyasoft
Date 2014-08-11.21:17:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407791851.9.0.287770247564.issue2166@psf.upfronthosting.co.za>
In-reply-to
Content
It's easily tested.
>>> from datetime import datetime
>>> fmt = '%Y-%m-%d %H:%M:%S.%f'
>>> t = datetime.now(); s = datetime.strptime(t.strftime(fmt), fmt); t-s
datetime.timedelta(0, 0, 476999)
>>> t.strftime(fmt)
'2014-08-11 21:20:33.476999'

With CPython I get:
>>> t = datetime.now(); s = datetime.strptime(t.strftime(fmt), fmt); t-s
datetime.timedelta(0)

Although it surprises me in that case that test_strptime passes (without skips).
History
Date User Action Args
2014-08-11 21:17:31jeff.allensetmessageid: <1407791851.9.0.287770247564.issue2166@psf.upfronthosting.co.za>
2014-08-11 21:17:31jeff.allensetrecipients: + jeff.allen, pekka.klarck, zyasoft, santa4nt
2014-08-11 21:17:31jeff.allenlinkissue2166 messages
2014-08-11 21:17:31jeff.allencreate