Skip to content

Instantly share code, notes, and snippets.

@technocake
Created August 27, 2019 12:45
Show Gist options
  • Save technocake/d84d8c3f4d5c48103a827a8afa013fd6 to your computer and use it in GitHub Desktop.
Save technocake/d84d8c3f4d5c48103a827a8afa013fd6 to your computer and use it in GitHub Desktop.
parse UTC + 0 isoformated strings
from datetime import datetime
inn = '2019-02-02T23:12:39.05Z'
fmt = "%Y-%m-%dT%H:%M:%S.%fZ"
print(datetime.strptime(inn, fmt))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment