Created
April 29, 2019 08:30
-
-
Save wjzhangq/e11eecb784f749d21a6bf7023305c1af to your computer and use it in GitHub Desktop.
时间函数
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 my_date(unixtime, format='%m/%d/%Y %H:%M'): | |
d = datetime.datetime.fromtimestamp(unixtime) | |
return d.strftime(format) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment