Oct-18-2023, 02:40 PM
I have a code like below
How do i do that in python
from datetime import datetime time_uploaded="2023-09-26T11:22:42.2Z" time_now =datetime.now()i now want to subtract the above 2 datetime ie (time_now-time_uploaded) and the output should be in days,hours,seconds,minutes format
How do i do that in python