Home > nifty-tou > YearTemporalRangesTariff
An extension of TemporalRangesTariff with support for an additional year range constraint.
Signature:
export default class YearTemporalRangesTariff extends TemporalRangesTariff
Extends: TemporalRangesTariff
Constructor | Modifiers | Description |
---|---|---|
(constructor)(yearRange, monthRange, dayOfMonthRange, dayOfWeekRange, minuteOfDayRange, rates) | Constructor. |
Property | Modifiers | Type | Description |
---|---|---|---|
yearRange | readonly |
IntRange | undefined | Get the month of year range. |
Method | Modifiers | Description |
---|---|---|
appliesAt(date, utc) | Test if this tariff applies on a given date. All range constraints are treated as inclusive bounds, except for the |
|
appliesAtYearExtended(date, utc) | Test if this tariff applies on a given date. All range constraints are treated as inclusive bounds, except for the |
|
compareTo(o) | Compares this object with the specified object for order. Unbounded ( |
|
componentsDescription() | protected |
Get a string representation of the components of this description. |
format(locale, field, options) | Format a field range into a locale-specific string. | |
parseYears(locale, yearRange, monthRange, dayOfMonthRange, dayOfWeekRange, minuteOfDayRange, rates, options) | static |
Parse time range criteria into a YearTemporalRangesTariff instance. |