Comment obtenir des secondes de Datetime à 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()