utils.py 文件源码

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

项目:HugoPhotoSwipe 作者: GjjvdBurg 项目源码 文件源码
def modtime():
    """ Get the current local time as a string in iso format """
    if six.PY2:
        local_tz = get_localzone()
        now = datetime.utcnow().replace(tzinfo=pytz.utc).astimezone(local_tz)
    else:
        now = datetime.now(timezone.utc).astimezone()
    nowstr = now.replace(microsecond=0).isoformat()
    return nowstr
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号