Home > nifty-tou > YearTemporalRangesTariffSchedule > matches
Find the rules that apply on a given date, repsecting the multipleMatch
property.
Signature:
/** @override */
matches(date: Date, utc?: boolean): T[];
Parameter | Type | Description |
---|---|---|
date | Date | the date to find the matching rules at |
utc | boolean | (Optional) if true then use UTC date components, otherwise assume the local time zone |
Returns:
T[]
the list of matching rules; at most one if multipleMatch
is false