Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Clock Angle by bukebuer
# migrated from python 2.7
def clock_angle(time):
hour, minute = list(map(float, time.split(':')))
hour = hour if hour < 12 else hour - 12
angle = abs(minute * 5.5 - hour * 30)
angle = angle if angle <= 180 else 360 - angle
return round(angle, 1)
Oct. 30, 2014
Comments: