This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mdt
Recipients baloan, christian.heimes, mdt, wangchun, zseil
Date 2009-03-24.11:30:18
SpamBayes Score 3.7469565e-06
Marked as misclassified No
Message-id <1237894222.15.0.37817247423.issue1982@psf.upfronthosting.co.za>
In-reply-to
Content
i am not shure what the code snippet shall proove but shouldnt't it read

from datetime import datetime
a_datetime = datetime.now()
a_datetime = a_datetime.replace(microsecond = 1)

iso_str = a_datetime.isoformat()
b_datetime = datetime.strptime(iso_str, "%Y-%m-%dT%H:%M:%S.%f")

assert(a_datetime == b_datetime)

? 

i general i would expect for each operation a reverse if possible to be
complete. so if there is a strftime, i look for a strptime, if there is
a isoformat, i like a isoparse. and to be complete i need a format tag
for ms if there is a microseconds member in datatime object.
History
Date User Action Args
2009-03-24 11:30:22mdtsetrecipients: + mdt, zseil, christian.heimes, baloan, wangchun
2009-03-24 11:30:22mdtsetmessageid: <1237894222.15.0.37817247423.issue1982@psf.upfronthosting.co.za>
2009-03-24 11:30:20mdtlinkissue1982 messages
2009-03-24 11:30:19mdtcreate