Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Clock Angle by TovarischZhukov
def clock_angle(time):
lst_time = time.split(":")
hours = int(lst_time[0])
minutes = int(lst_time[1])
if hours > 12:
hours = hours % 12
val = abs(minutes * 6 - (hours *30+ minutes * 0.5))
ret = min(360 - val , val)
return ret
Dec. 22, 2015