Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 901 Bytes

nifty-tou.yeartemporalrangestariffschedule.matches.md

File metadata and controls

28 lines (17 loc) · 901 Bytes

Home > nifty-tou > YearTemporalRangesTariffSchedule > matches

YearTemporalRangesTariffSchedule.matches() method

Find the rules that apply on a given date, repsecting the multipleMatch property.

Signature:

/** @override */
matches(date: Date, utc?: boolean): T[];

Parameters

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