Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
nvie opened this Issue · 0 comments

1 participant

@nvie
Owner

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 closed this issue from a commit
@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
@lcrees lcrees referenced this issue from a commit
@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.
890a1a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.