TimeOfDayExtensions extension
Convenience methods on TimeOfDay.
- on
Methods
-
ceil(
) → TimeOfDay -
Available on TimeOfDay, provided by the TimeOfDayExtensions extension
Creates a new TimeOfDay fromthisby updating minute to 59. -
ceilToInterval(
int minuteInterval) → TimeOfDay -
Available on TimeOfDay, provided by the TimeOfDayExtensions extension
Creates copy ofthiswith the minute value rounded to the least minute value that is divisible byminuteIntervalbut is not smaller than current minute value. -
clamp(
TimeOfDay? minimum, TimeOfDay? maximum) → TimeOfDay -
Available on TimeOfDay, provided by the TimeOfDayExtensions extension
Clampsthisobject to be within the specified time rangeminimum-maximum. Ifthisis already within the range, it is returned unchanged. Ifthisis not within the range, the function returns the closest valid TimeOfDay within the range. The function also supports time ranges that span across midnight. -
floor(
) → TimeOfDay -
Available on TimeOfDay, provided by the TimeOfDayExtensions extension
Creates a new TimeOfDay fromthisby updating minute to 0. -
floorToInterval(
int minuteInterval) → TimeOfDay -
Available on TimeOfDay, provided by the TimeOfDayExtensions extension
Creates copy ofthiswith the minute value rounded to the greatest minute value that is divisible byminuteIntervalbut no greater than the current minute value. -
isAfter(
TimeOfDay other) → bool -
Available on TimeOfDay, provided by the TimeOfDayExtensions extension
Returns true ifthisoccurs afterother. -
isBefore(
TimeOfDay other) → bool -
Available on TimeOfDay, provided by the TimeOfDayExtensions extension
Returns true ifthisoccurs beforeother. -
isInRange(
TimeOfDay start, TimeOfDay end) → bool -
Available on TimeOfDay, provided by the TimeOfDayExtensions extension
Returns true ifthisoccurs in rangestart-end. -
roundToInterval(
int minuteInterval) → TimeOfDay -
Available on TimeOfDay, provided by the TimeOfDayExtensions extension
Creates copy ofthiswith the minute value rounded to the closest minute value that is divisible byminuteInterval. -
toMinutes(
) → int -
Available on TimeOfDay, provided by the TimeOfDayExtensions extension
Convertsthisto minutes.