Make the default output format of times.format() ISO 8601 #5

nvie opened this Issue Feb 17, 2012 · 0 comments


None yet

1 participant

nvie commented Feb 17, 2012

It should really be standardised and more portable (for example, to JavaScript, when used inside APIs).

So instead of:

>>> times.format(, 'UTC')
'2012-02-17 15:17:09+0000'

it should become:

>>> times.format(, 'UTC')
@nvie nvie added a commit that closed this issue Feb 17, 2012
@nvie By default, use isoformat() to format datetimes.
This makes it more portable to JavaScript or MongoDB, for example, when
using these times in APIs.

This fixes #5.
@nvie nvie closed this in 220df60 Feb 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment