Jak przekonwertować datę ciągów na znacznik czasu w Python
import time
import datetime
# date in string format
dt="23/04/2022"
# convert into the time tuple
time_tuple=datetime.datetime.strptime(dt, "%d/%m/%Y").timetuple()
print("Time tuple format ",time_tuple)
# using mktime() convert to timestamp
print("The timestamp is ",time.mktime(time_tuple))
Gorgeous Gazelle