Answers for "add seconds to datetime python"

0

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

Code answers related to "add seconds to datetime python"

Python Answers by Framework

Browse Popular Code Answers by Language