Created
August 6, 2013 18:52
-
-
Save tkmru/6167441 to your computer and use it in GitHub Desktop.
It make datetime object from struct_time.
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
def convert_time(struct_time): #struct_time to datetime object | |
return datetime.datetime(*struct_time[:6]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment