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 magicbadger
Recipients baloan, belopolsky, christian.heimes, giampaolo.rodola, guettli, magicbadger, mdt, wangchun, zseil
Date 2011-07-08.09:46:58
SpamBayes Score 2.4822313e-07
Marked as misclassified No
Message-id <1310118419.52.0.374311123046.issue1982@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry to chime in on an old issue. Whilst it is good to have the ability to format the string up to microsecond precision, it would be better to be able to control the precision used.

For instance, the ISO8601 specification states that there is no strictly defined precision to be used, and that any such precision should be agreed between parties exchanging ISO8601 datetimes.

Would it be possible to state the precision when formatting ISO8601 datetimes - e.g. %3f to only print up to millisecond precision? presumable %f would keep the original functionality of printing right up to the microseconds.
History
Date User Action Args
2011-07-08 09:46:59magicbadgersetrecipients: + magicbadger, guettli, belopolsky, zseil, giampaolo.rodola, christian.heimes, baloan, wangchun, mdt
2011-07-08 09:46:59magicbadgersetmessageid: <1310118419.52.0.374311123046.issue1982@psf.upfronthosting.co.za>
2011-07-08 09:46:58magicbadgerlinkissue1982 messages
2011-07-08 09:46:58magicbadgercreate