Answers for "substract seconds from pytnon"

0

python datetime subtract seconds

import datetime

X = 65
result = datetime.datetime.now() - datetime.timedelta(seconds=X)
Posted by: Guest on May-18-2021

Code answers related to "substract seconds from pytnon"

Python Answers by Framework

Browse Popular Code Answers by Language