Answers for "substract two timestamps in python to get hours"

0

subtract one hour from datetime python

from datetime import datetime, timedelta

d = datetime.today() - timedelta(hours=0, minutes=50)

d.strftime('%H:%M %p')
Posted by: Guest on June-03-2021

Code answers related to "substract two timestamps in python to get hours"

Python Answers by Framework

Browse Popular Code Answers by Language