Skip to main content

Module change_time_unit

Module change_time_unit 

Source
Expand description

Convert a temporal value to a coarser unit with an explicit rounding mode.

cast performs only the temporal conversions that are exact for every valid value. A coarser unit can drop part of a count, so this function makes the caller choose a TemporalRounding.

Structsยง

ChangeTimeUnit
Convert a Date, Time, or Timestamp to a coarser unit.
ChangeTimeUnitOptions
Options for ChangeTimeUnit.