View all expressions
Motion

Digital Timer, Hours and Minutes Format

Displays time in an HH:MM format using a slider control.


slider = Math.round(effect("Slider Control")("Slider"));
sec = slider % 60;
min = Math.floor(slider / 60);
function addZero(n) {
return n < 10 ? "0" + n : n;
}
addZero(min) + ":" + addZero(sec);

Digital Timer, Hours and Minutes Format

Practical use case

Great for countdowns or time-based animations where hours and minutes are needed.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image