Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Straightforward solution in Clear category for Clock Angle by DiZ
def clock_angle(time):
hour, minute = map(int, time.split(':'))
diff = abs(hour % 12 * 30 - 5.5 * minute)
return min(diff, 360 - diff)
Oct. 29, 2014