First: simply use proportionality, angular velocity of the sun moving is constant solution in Clear category for Sun Angle by leggewie
hours, minutes = time.split(":") # returned values are str
ma6 = 60*(int(hours)-6) + int(minutes)
# advacing degrees-per-minute (angular velocity is constant)
dpm = 180/(12*60)
if ma6 >= 0 and ma6 <= 720:
return "I don't see the sun!"
May 31, 2021