Created
December 2, 2012 16:52
-
-
Save dps/4189760 to your computer and use it in GitHub Desktop.
Python code to convert seconds since epoch to ISO format (for kml, xml datetime etc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dt = datetime.datetime.utcfromtimestamp(seconds_since_epoch) | |
iso_format = dt.isoformat() + 'Z' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment