def printDate(timestamp):
# Author @ash-2000 https://github.com/ash-2000
# Check for crashing when timestamp is 13 digits on python2.7
# pull request #260
if len(str(timestamp)) == 13:
timestamp = int(str(timestamp)[0:-3])
# ---
return datetime.date.strftime(datetime.date.fromtimestamp(timestamp / 1000), "%d.%m.%Y")
评论列表
文章目录