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

Do you want to know the information about “how to subtract 48 hours from datetime filed in python without using pandas”. If yes, you’re in the correct post.

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')

Final Words

I hope this tutorial helps you to know about “how to subtract 48 hours from datetime filed in python without using pandas”. If you have any doubts regarding this post please let us know via the comment section. Share this tutorial with your friends and family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment