I have a string of a timespan like this:
timespan = '08.00-14:00'
I want to know if this timespan is at least n hours, for example 2 hours:
if timespan >= 2:
do something
I have a string of a timespan like this:
timespan = '08.00-14:00'
I want to know if this timespan is at least n hours, for example 2 hours:
if timespan >= 2:
do something
Copyright © 2021 Jogjafile Inc.
Edit: You can try something like