Skip to content

Instantly share code, notes, and snippets.

@janbraiins
Created July 17, 2018 06:19
Show Gist options
  • Save janbraiins/a8743aae5aa18718f2f70895026914d0 to your computer and use it in GitHub Desktop.
Save janbraiins/a8743aae5aa18718f2f70895026914d0 to your computer and use it in GitHub Desktop.
unixtimestamp2datestr
def d(a):
return datetime.datetime.fromtimestamp(a).strftime('%Y-%m-%d %H:%M:%S')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment