DateTimeClampExtensions extension

Clamp DateTime to a range.

on

Methods

clampTo(DateTime min, DateTime max) DateTime

Available on DateTime, provided by the DateTimeClampExtensions extension

Returns this DateTime clamped to min and max.