DateTimeRangeExtensions extension

Extension on DateTimeRange to provide additional functionality

on

Methods

inRange(DateTime date) bool

Available on DateTimeRange<DateTime>, provided by the DateTimeRangeExtensions extension

Checks if a given date is within the range
isNowInRange({DateTime? now}) bool

Available on DateTimeRange<DateTime>, provided by the DateTimeRangeExtensions extension

Checks if the current date and time is within the range
isNthDayOfMonthInRange(int n, int dayOfWeek, int month, {bool inclusive = true}) bool

Available on DateTimeRange<DateTime>, provided by the DateTimeRangeExtensions extension

Determines if the nth occurrence of a specific day of the week in a given month falls within the specified date range.