
Feb. 10, 2005
8:16 p.m.
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>