today = datetime.today() dt = datetime(year=today.year, month=today.month, day=today.day, hour=23, minute=59, second=59) print(dt.timestamp())