Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 901 Bytes

nifty-tou.yeartemporalrangestariffschedule.firstmatch.md

File metadata and controls

28 lines (17 loc) · 901 Bytes

Home > nifty-tou > YearTemporalRangesTariffSchedule > firstMatch

YearTemporalRangesTariffSchedule.firstMatch() method

Find the first rule that applies on a given date.

Signature:

/** @override */
firstMatch(date: Date, utc?: boolean): T | undefined;

Parameters

Parameter Type Description
date Date the date to find the first matching rule at
utc boolean (Optional) if true then use UTC date components, otherwise assume the local time zone

Returns:

T | undefined

the first available matching rule, or undefined if no rules match