Answers for "python datetime add seconds"

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
0

python datetime add minutes

updated_time = date_time_obj + timedelta(minutes=30)
print(updated_time)
Posted by: Guest on April-20-2021
0

python datetime add minutes

b = a + datetime.timedelta(seconds=3)
Posted by: Guest on April-20-2021

Browse Popular Code Answers by Language