Coercions Types (dw::util::Coercions)

Type Definition Description


type MillisOrSecs = "milliseconds" | "seconds"

Type used for setting units to "milliseconds" or "seconds".


type PeriodUnits = "hours" | "minutes" | "seconds" | "milliseconds" | "nanos"

Type used for setting units of a Period value to "hours", "minutes", "seconds", "milliseconds", or "nanos".


type RoundingMode = "UP" | "DOWN" | "CEILING" | "FLOOR" | "HALF_UP" | "HALF_DOWN" | "HALF_EVEN"

Type used when rounding decimal values up or down.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub
Submit your feedback!
Share your thoughts to help us build the best documentation experience for you!
Take our latest survey!