标签: python datetime format timestamp unix-timestamp
我想将datetime格式转换为unix时间戳。我怎样才能做到这一点。有谁可以帮助我?
import datetime time_of_day = datetime.datetime.now() replaced_time = time_of_day.replace(hour=0, minute=0)