Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
SunAngle.c solution in Clear category for Sun Angle by trudnopodobny
def sun_angle(time):
minutes = sum(x * int(t) for x, t in zip([60, 1], time.split(":")))
if 359 < minutes < 1081: # if between 6:00AM and 6:00PM
angle = minutes/4 - 90
return angle
return "I don't see the sun!"
Oct. 8, 2018