Answers for "add time in seconds to current datetime 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
2

add time to datetime python

add_time = datetime.timedelta(days=2)
Posted by: Guest on June-13-2021

Code answers related to "add time in seconds to current datetime python"

Python Answers by Framework

Browse Popular Code Answers by Language