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

Closed
nvie opened this Issue Feb 17, 2012 · 0 comments

Projects

None yet

1 participant

@nvie
Owner
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(times.now(), 'UTC')
'2012-02-17 15:17:09+0000'

it should become:

>>> times.format(times.now(), 'UTC')
'2012-02-17T15:17:46.626199+00:00'
@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.
220df60
@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