clockLabel

fun clockLabel(time: Duration, interval: Duration): String(source)

Formats time for a ruler whose ticks are interval apart.

Tenths appear only below a second, and the hours field only once there are any, so a label never carries a digit the zoom cannot resolve.

Return

The label, as m:ss , h:mm:ss or m:ss.t .

Parameters

time

The source time to label.

interval

How far apart the ruler's ticks sit.