Answers for "subtract minutes from date python"

0

python datetime subtract seconds

import datetime

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

how to subtract minutes from time in python

from datetime import datetime, timedelta

d = datetime.today() - timedelta(days=0, hours=0, minutes=0)
Posted by: Guest on February-19-2021

Code answers related to "subtract minutes from date python"

Python Answers by Framework

Browse Popular Code Answers by Language