Press space to reset it. Purple is seconds. Green is minutes. Red is hours.
I used mostly the same “code” and math I used in the Desmos one. I apologize for any inaccuracies in the numbers placement, as I had to place them by hand.