Feedback
formatDuration
Seconds as a clock reads them: 9:05, or 1:02:03 from an hour up.
import { formatDuration } from "@/lib/ouro/use-timer";Example
formatDuration(545); // "9:05"Parameters
seconds- Type:
number
Returns
string
Feedback
Seconds as a clock reads them: 9:05, or 1:02:03 from an hour up.
import { formatDuration } from "@/lib/ouro/use-timer";formatDuration(545); // "9:05"secondsnumberstring