arrow.py 文件源码

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

项目:kino-bot 作者: DongjunLee 项目源码 文件源码
def get_action_time(time: str) -> arrow.Arrow:
        time_str = time.strip().replace('at', '')
        if time_str == "now":
            return arrow.get(arrow.now(), tzinfo=tz.tzlocal())
        else:
            return arrow.get(
                time_str,
                'MMMM D, YYYY  hh:mma',
                tzinfo=tz.tzlocal())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号