out.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:txt2evernote 作者: Xunius 项目源码 文件源码
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")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号