Django如何获取当天23:59:59的时间戳?

Django如何获取当天23:59:59的时间戳?

阅读 2.5k
2 个回答
today = datetime.today()
dt = datetime(year=today.year, month=today.month, day=today.day, hour=23, minute=59, second=59)
print(dt.timestamp())
推荐问题
宣传栏