Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- timestamp = "2016-12-17T15:40:32.000Z"
- ts = time.strptime(timestamp[:19], "%Y-%m-%dT%H:%M:%S")
- print time.strftime("%Y-%m-%d %H:%M:%S", ts)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement