date.fromtimestamp返回对应于 POSIX 时间戳的当地时间,类型是datetime.date
date.fromtimestamp(timestamp)
datetime.date类型对象,POSIX 时间戳对应的当地时间
import time
from datetime import date
date_time = date.fromtimestamp(time.time())
print(date_time) # 2022-05-29
QQ交流群: 211426309