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())
评论列表
文章目录