type alias Temporal.ToStringPrecisionOptions
unstable
Options for outputting precision in toString() on types with seconds
Properties #
#fractionalSecondDigits: "auto"
 | 0
 | 1
 | 2
 | 3
 | 4
 | 5
 | 6
 | 7
 | 8
 | 9 optional
#smallestUnit: SmallestUnit<"minute"
 | "second"
 | "millisecond"
 | "microsecond"
 | "nanosecond"> optional
#roundingMode: RoundingMode optional
Controls how rounding is performed:
- halfExpand: Round to the nearest of the values allowed by- roundingIncrementand- smallestUnit. When there is a tie, round up. This mode is the default.
- ceil: Always round up, towards the end of time.
- trunc: Always round down, towards the beginning of time.
- floor: Also round down, towards the beginning of time. This mode acts the same as- trunc, but it's included for consistency with- Temporal.Duration.round()where negative values are allowed and- truncrounds towards zero, unlike- floorwhich rounds towards negative infinity which is usually unexpected. For this reason,- truncis recommended for most use cases.