Answers for "Addition of minutes and seconds in python"

1

add seconds to datetime python

from datetime import datetime, timedelta
x = datetime.now() + timedelta(seconds=3)
x += timedelta(seconds=3)
Posted by: Guest on June-20-2021
1

add hour minutes second python

from datetime import timedelta
t1 = datetime.time(hours, minutes, second) + timedelta(seconds=s, minutes=m, hours=h)
Posted by: Guest on September-01-2020

Code answers related to "Addition of minutes and seconds in python"

Browse Popular Code Answers by Language