Decimal Point Analytics dashboards may display timestamps in either 12-hour or 24-hour format. Given an hour, minute, and second, calculate the smaller angle between the analog clock's hour and minute hands.
Both hands move continuously. The hour hand advances during each minute and second, while the minute hand advances during each second. Treat hour 0 and hour 12 as the same clock position.
Implement clock_angle(hour, minute, second).
hour in the range 0 through 23, minute in the range 0 through 59, and second in the range 0 through 59.[0, 180].def clock_angle(hour, minute, second):