DateTimeRangeExtensions extension
Extension on DateTimeRange to provide additional functionality
Methods
-
inRange(
DateTime date, {bool inclusive = true}) → bool -
Available on DateTimeRange<
Checks if a given date is within the range.DateTime> , provided by the DateTimeRangeExtensions extension -
isNowInRange(
{DateTime? now, bool inclusive = true}) → bool -
Available on DateTimeRange<
Checks if the current date and time is within the range.DateTime> , provided by the DateTimeRangeExtensions extension -
isNthDayOfMonthInRange(
int n, int dayOfWeek, int month, {bool inclusive = true}) → bool -
Available on DateTimeRange<
Determines if the nth occurrence of a specific day of the week in a given month falls within the specified date range.DateTime> , provided by the DateTimeRangeExtensions extension