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