Cómo obtener segundos de DateTime en Python
import datetime
current_time = datetime.datetime.now()
seconds = current_time.second
minutes = current_time.minute
Dosik
import datetime
current_time = datetime.datetime.now()
seconds = current_time.second
minutes = current_time.minute
from datetime import datetime
dt = datetime.today() # Get timezone naive now
seconds = dt.timestamp()