Answers for "python datetime take seconds and convert to minutes"

1

python datetime to seconds

from datetime import datetime
dt = datetime.today()  # Get timezone naive now
seconds = dt.timestamp()
Posted by: Guest on April-07-2021

Code answers related to "python datetime take seconds and convert to minutes"

Python Answers by Framework

Browse Popular Code Answers by Language