MinMaxExt extension
Extension providing min/max operations for Hora.
- on
Methods
-
atLeast(
Hora min) → Hora - Ensures this date is not before the minimum.
-
atMost(
Hora max) → Hora - Ensures this date is not after the maximum.
-
clampBetween(
Hora min, Hora max) → Hora - Clamps this date to be within a range.
-
isStrictlyWithin(
Hora start, Hora end) → bool - Checks if this date is strictly within a range (exclusive).
-
isWithin(
Hora start, Hora end) → bool - Checks if this date is within a range (inclusive).
-
max(
Hora other) → Hora - Gets the later of this and another date.
-
min(
Hora other) → Hora - Gets the earlier of this and another date.