Skip to content

Instantly share code, notes, and snippets.

@cstorey
Last active December 17, 2015 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cstorey/5593323 to your computer and use it in GitHub Desktop.
Save cstorey/5593323 to your computer and use it in GitHub Desktop.
In [17]: pytz.UTC.localize(datetime.utcnow()).isoformat()
Out[17]: '2013-05-16T17:06:19.394052+00:00'
In [18]: (datetime.utcnow()).isoformat()
Out[18]: '2013-05-16T17:06:24.842408'
In [19]:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment