Skip to content
Advertisement

Tag: clock

How do I calculate the angle between the hour and minutes hands?

I’m trying to workout this problem, but I am still struggling to understand the logic to solve this problem. So, according to this, I thought I could formulate the following function in python: For the hour, it works fine, as it appears to have a 1=1 mapping. But for the minute there is one problem at least. When it’s 0

Advertisement