Skip to content

Instantly share code, notes, and snippets.

@tkmru
Created August 6, 2013 18:52
Show Gist options
  • Save tkmru/6167441 to your computer and use it in GitHub Desktop.
Save tkmru/6167441 to your computer and use it in GitHub Desktop.
It make datetime object from struct_time.
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