Untitled
Anonymous
plain_text
10/11/2024 9:14 AM
424 B
14
Indexable
import datetime
import pytz
start_date_string = '2024-10-10'
start_datetime = datetime.datetime.strptime(str(start_date_string)[0:10] + ' 10:00:00', '%Y-%m-%d %H:%M:%S')
start_datetime = pytz.timezone('Europe/Paris').localize(start_datetime)
start_timestamp = int(start_datetime.timestamp())
print(start_timestamp)Editor is loading...
Leave a Comment