Python 时间戳timestamp转datetime

from datetime import datetime
import time


ts = 1647847107
datetime.fromtimestamp(ts)

datetime.datetime(2022, 3, 21, 15, 18, 27)

点赞

发表评论

电子邮件地址不会被公开。必填项已用 * 标注