randRange(1, 12) randRange(0, 1) * 30 MINUTE > 5 ? MINUTE : "0" + "" + MINUTE icu.getDateFormatSymbols().am_pm[HOUR >= 7 ? 0 : 1]

What time is it?

init({ range: [[-4, 4], [-4, 4]], scale: 25 }); clock = addAnalogClock({ hour: HOUR, minute: MINUTE, minuteTicks: 0 }); clock.draw();
init({ range: [[-5, 5], [-3, 3]], scale: 25 });

The time is:
HOUR : NICE_MINUTE AM_PM

path([ [-3, -1], [3, -1], [3, 1], [-3, 1], [-3, -1] ]); graph.time = label( [0, -0.1], "\\Huge{\\phantom{00}:\\phantom{00}}", "center" );

The small hand is for the hour, and the big hand is for the minutes.

The hour hand is pointing at `HOUR`, so the hour is `HOUR`.

The hour hand is between `HOUR` and `HOUR + 1 === 13 ? 1 : HOUR + 1`, so the hour is `HOUR`.

graph.time.remove(); var padding = HOUR < 10 ? "\\phantom{0}" : ""; graph.time = label([0, -0.1], "\\Huge{" + padding + HOUR + ":\\phantom{00}}", "center" );

The minute hand is pointing straight up, so it is `HOUR` exactly.

The minute hand is pointing straight down, so half an hour has past since `HOUR`.

graph.time.remove(); var padding = MINUTE < 10 ? "0" : ""; graph.time = label([0, -0.1], "\\Huge{" + HOUR + ":" + padding + MINUTE + "}", "center" );

The time is `HOUR`:`NICE_MINUTE`.

randRange(1, 12) 30 randRange(0, (60 / MINUTE_INCREMENT) - 1) * MINUTE_INCREMENT
MINUTE === 0 MINUTE > 5 ? MINUTE : "0" + MINUTE HOUR + ":" + NICE_MINUTE

Set the clock to TIME.

init({ range: [[-4.5, 4.5], [-4.5, 4.5]], scale: 30 }); clock = addInteractiveAnalogClock({ radius: 3.75, minuteTicks: 60, minuteIncrement: MINUTE_INCREMENT });
Drag the two hands so the clock reads HOUR:NICE_MINUTE.
clock.getHandPositions()
return clock.validate(guess, MINUTE, HOUR);
clock.minutePoint.moveTo(guess[0][0], guess[0][1], true); clock.hourPoint.moveTo(guess[1][0], guess[1][1], true);

The hour hand is the short blue bar and the minute hand is the long red bar.

The number after the `\Large{:}` symbol represents the number of minutes past the hour. So `TIME` represents `\red{MINUTE}` minutes past hour `\blue{HOUR}`.

Since it's `\red{0}` minutes past the hour, the hour hand should be right on the `\blue{HOUR}` hour mark.

Since it's `\red{30}` minutes past the hour, the hour hand should be halfway between the `HOUR` and `1HOUR + 1` hour marks.

clock.showCorrectTime(MINUTE, HOUR);