Timer

A simple countdown timer without buttons.

It takes:

  • a fixed duration
  • a Unix timestamp indicating when the timer should start

The remaining time is calculated from the real time, not from the page load.


Demo

Start timestamp (Unix time), duration (seconds)

<Timer {duration} {startTimestamp}/>

Start TimeStamp:

Duration:


We finish in 00:00.

© 2021 — 2026 BASF SE and Materials Platform for Data Science OÜ

API Timer

duration: number
Timer duration in seconds, e.g. 300 = 5 minutes
startTimestamp: number
Unix timestamp (seconds) when the timer should start, e.g. 1767225600 = January 1, 2026 00:00