Say I have two times in Python as string
import datetime
time1 = '16:00'
time2 = '17:00'
Is there any way to do a logic as below, where I compare the two time points as if they are from the same day. Can I compare them without taking date into account?
if time1 < time2:
print('True')