Answers for "decrease hours in datetime python"

1

decrease hours in datetime python

from datetime import datetime, timedelta
d = datetime.today() - timedelta(hours=1, minutes=50)
Posted by: Guest on September-08-2021

Code answers related to "decrease hours in datetime python"

Python Answers by Framework

Browse Popular Code Answers by Language