Python Datetime en secondes
from datetime import datetime
dt = datetime.today() # Get timezone naive now
seconds = dt.timestamp()
MikeLuvsCake
from datetime import datetime
dt = datetime.today() # Get timezone naive now
seconds = dt.timestamp()
from datetime import datetime
t = datetime.now().time()
seconds = (t.hour * 60 + t.minute) * 60 + t.second