Returns this DateTime clamped to min and max. Audited: 2026-06-12 11:26 EDT
min
max
@useResult DateTime clampTo(DateTime min, DateTime max) { if (isBefore(min)) return min; if (isAfter(max)) return max; return this; }