API

API Reference

Properties

Name Description Type Required Default value
value Defines the duration value in seconds. number
precision Specifies detail to show. Either smallest unit to show, e.g. `minutes` or `auto`. When `auto` is given, the highest non-zero unit and the next will be shown. "seconds" | "minutes" | "hours" | "days" | "auto" seconds
pad Specifies whether to pad values to fix length. boolean false
show-zero-parts Specifies whether to show zero parts. Last part is shown even if it is 0. boolean false