Answers for "how to subtract 48 hours from datetime filed in python without using pandas"

0

how to subtract 48 hours from datetime filed in python without using pandas

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 "how to subtract 48 hours from datetime filed in python without using pandas"

Python Answers by Framework

Browse Popular Code Answers by Language