Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Clock Angle by martin_b
def clock_angle(time):
h, m = map(int, time.split(':'))
# hour angle: h%12*30 + m*.5; minute angle: m*6
a = abs(h % 12 * 30 - m * 5.5)
return min(a, 360 - a)
April 7, 2016
Comments: