FiscalYear class

Constructs a FiscalYear time period.

Defaults to the US Government fiscal year which runs from October of the previous calendar year through September. This can be changed by setting the optional monthOffset parameter.

If the year provided is only 2 digits it will be converted to four digits, assuming anything 70 or over means 19xx and anything under 70 mean 20xx.

Inheritance

Constructors

FiscalYear(int year, {int monthOffset = -3})
Constructs a FiscalYear, optionally setting the month offset (which defaults to minus 3).

Properties

centerValue TimeInstant
The value at the center of the range.
no setterinherited
delta TimeInstant
The change in value from start to end, which may be negative.
no setterinherited
hashCode int
Two equal quantity ranges will have the same hash code.
no setterinherited
maxValue TimeInstant
The maximum value in this range.
no setterinherited
minValue TimeInstant
The minimum value in this range.
no setterinherited
q1 TimeInstant
The starting quantity of the range.
getter/setter pairinherited
q2 TimeInstant
The ending quantity of the range.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span TimeInstant
The magnitude of the range. This value is always positive (or zero). Get delta for the signed version of the range.
no setterinherited

Methods

contains(TimeInstant quantity, [bool inclusive = true, double epsilon = 1.0e-10]) bool
True if this range contains quantity, with a tolerance, epsilon, of rounding errors of 1.0e-10 and inclusive of the endpoints by default.
inherited
encompasses(QuantityRange<TimeInstant> range2) bool
True only if this range completely encompasses range2.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overlaps(QuantityRange<TimeInstant> range2) bool
Returns true if this range overlaps range2 (exclusive of the endpoints).
inherited
toString() String
Returns a String representation of this range in the form '
override

Operators

operator ==(dynamic obj) bool
Two quantity ranges are considered equal only if their endpoints are exactly equal.
inherited