quantity_range library

Classes

AngleRange
An immutable angle range with a start angle, an end angle and an implicit direction.
CalendarYear
The period of 365 days (or 366 days in leap years) starting from the first of January; used for reckoning time in ordinary affairs.
FiscalYear
Constructs a FiscalYear time period.
QuantityRange<Q extends Quantity>
Represents a range of quantity values.
TimePeriod
Represents a specific time span.

Functions

uncertaintyRangeForQuantity(Quantity q, {double k = 1.0}) QuantityRange<Quantity>
Creates a QuantityRange that represents the standard uncertainty of q.
yr4(int year) int
Returns a four digit year from year which may be only 2 digits, assuming that anything 70 or more means 19xx and under 70 means 20xx.