Contact Us 1-800-596-4880

Coercions Types (dw::util::Coercions)

Type Definition Description

MillisOrSecs

type MillisOrSecs = "milliseconds" | "seconds"

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

PeriodUnits

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

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

RoundingMode

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

Type used when rounding decimal values up or down.