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 zooko
Recipients brett.cannon, skip.montanaro, tim.peters, tungwaiyip, zooko
Date 2007-10-15.04:15:39
SpamBayes Score 0.2571374
Marked as misclassified No
Message-id <1192421740.18.0.527419575059.issue1074462@psf.upfronthosting.co.za>
In-reply-to
Content
Here is a note for the next person who comes to this ticket wondering
why isoformat() exhibits this slightly un-Pythonic behavior.  If you
want to use isoformat() to produce, for example, timestamps for your
logfiles, you'll need to do something like the following.  (I do hope
you noticed the documentation and didn't use isoformat() in the naive
way, or your log files will very rarely have a different format than you
expected.)

    d = datetime.datetime.utcfromtimestamp(when)
    if d.microsecond:
        return d.isoformat(" ")[:-3]+"Z"
    else:
        return d.isoformat(" ") + ".000Z"

http://allmydata.org/trac/tahoe/browser/src/allmydata/node.py#L21
History
Date User Action Args
2007-10-15 04:15:40zookosetspambayes_score: 0.257137 -> 0.2571374
recipients: + zooko, tim.peters, skip.montanaro, brett.cannon, tungwaiyip
2007-10-15 04:15:40zookosetspambayes_score: 0.257137 -> 0.257137
messageid: <1192421740.18.0.527419575059.issue1074462@psf.upfronthosting.co.za>
2007-10-15 04:15:40zookolinkissue1074462 messages
2007-10-15 04:15:39zookocreate