python datetime take seconds and convert to minutes code example
Example 1: minutes to seconds python
>>> import datetime
>>> str(datetime.timedelta(seconds=666))
'0:11:06'
Example 2: python datetime to seconds
from datetime import datetime
dt = datetime.today() # Get timezone naive now
seconds = dt.timestamp()