On Thursday 10 February 2005 14:44, Tim Peters wrote:
> Well, then since that isn't ISO 8601 format, it would be nice to have
> a comment explaining why it's claiming to be anyway <0.5 wink>.
Hmm, that's right (ISO 8601:2000, section 5.4.2). Sigh.
> dt.replace(microsecond=0).isoformat()
>
> suffices for that much. Tack on .replace('-', '') to do the whole job.
Yep, that would work too.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com