Skip to main content
Temporal.PluralUnit - Temporal - Web documentation
type alias Temporal.PluralUnit
Unstable

When the name of a unit is provided to a Temporal API as a string, it is usually singular, e.g. 'day' or 'hour'. But plural unit names like 'days' or 'hours' are also accepted.

Type Parameters

T extends DateTimeUnit

Definition

{ year: "years"; month: "months"; week: "weeks"; day: "days"; hour: "hours"; minute: "minutes"; second: "seconds"; millisecond: "milliseconds"; microsecond: "microseconds"; nanosecond: "nanoseconds"; }[T]
Back to top