I have a problem that seems really easy but I can't figure it out.
I want to achieve the following: Time_as_string - time_now = minutes left until time as string.
I scrape a time from a website as a string, for example: '15:30'
.
I want to subtract the current time from this to show how many minutes are left untill the scraped time string.
I tried many things like strftime()
, converting to unix timestamp, googling solutions etc.
I can make a time object from the string through strftime()
but I can't subtract it from the current time.
What is the best way to achieve this?