Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Clock Angle by l.szyman10
def clock_angle(time):
h, m = map(int, time.split(':'))
h = h%12
h_angle = h*30 + m/2
m_angle = 6*m
return min(abs(h_angle - m_angle), 360 - abs(h_angle - m_angle))
May 19, 2020