Skip to content

Instantly share code, notes, and snippets.

@CzechJiri
Created May 25, 2017 16:23
Show Gist options
  • Save CzechJiri/6043a529ea9b0aa073d2f17804ee4379 to your computer and use it in GitHub Desktop.
Save CzechJiri/6043a529ea9b0aa073d2f17804ee4379 to your computer and use it in GitHub Desktop.
my ideal date format for python logging with no spaces, commas or missing timezone
from datetime import datetime, timezone
print( datetime.now(timezone.utc).isoformat() )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment