Module
JS.Temporal.RoundingMode
- Package
- purescript-js-temporal
- Repository
- pete-murphy/purescript-js-temporal
Rounding modes for Temporal round, until, since, and total operations.
Used to control how values are rounded when converting between units or
truncating sub-unit precision. See
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Temporal#rounding
#RoundingMode Source
data RoundingModeHow to round when a value falls between two representable units.
Constructors
Instances
#toString Source
toString :: RoundingMode -> StringConverts a RoundingMode to its JavaScript string value (e.g. HalfEven → "halfEven").
#fromString Source
fromString :: String -> Maybe RoundingModeParses a JavaScript rounding mode string. Returns Nothing for unknown values.
- Modules
- JS.
Temporal. CalendarName - JS.
Temporal. Disambiguation - JS.
Temporal. Duration - JS.
Temporal. Duration. Internal - JS.
Temporal. Instant - JS.
Temporal. Instant. Internal - JS.
Temporal. Internal - JS.
Temporal. Now - JS.
Temporal. OffsetDisambiguation - JS.
Temporal. Overflow - JS.
Temporal. PlainDate - JS.
Temporal. PlainDate. Internal - JS.
Temporal. PlainDateTime - JS.
Temporal. PlainDateTime. Internal - JS.
Temporal. PlainMonthDay - JS.
Temporal. PlainMonthDay. Internal - JS.
Temporal. PlainTime - JS.
Temporal. PlainTime. Internal - JS.
Temporal. PlainYearMonth - JS.
Temporal. PlainYearMonth. Internal - JS.
Temporal. RoundingMode - JS.
Temporal. TemporalUnit - JS.
Temporal. ZonedDateTime - JS.
Temporal. ZonedDateTime. Internal