Expand description
This module provides logic for validating rounding increments.
Each of the types we support rounding for have their own logic for how the rounding increment is validated. For example, when rounding timestamps, only rounding increments up to hours are supported. But when rounding datetimes, rounding increments up to days are supported. Similarly, rounding increments for time units must divide evenly into 1 unit of the next highest unit.
Functionsยง
- for_
datetime ๐ - Validates the given rounding increment for the given unit.
- for_
span ๐ - Validates the given rounding increment for the given unit.
- for_
time ๐ - Validates the given rounding increment for the given unit.
- for_
timestamp ๐ - Validates the given rounding increment for the given unit.
- get_
with_ ๐limit - get_
with_ ๐max