Constructors
constructor
-
Properties
Private _length
Private _units
Methods
add
-
Parameters
adda
-
Parameters
Returns void
div
-
Parameters
diva
-
Parameters
frequency
-
init1
-
Parameters
init2
-
Parameters
length
-
normalize
-
Returns void
sub
-
Parameters
suba
-
Parameters
Returns void
toString
-
Returns string
units
-
valueOf
-
Static days
-
Parameters
Static daysMinMax
-
Parameters
Static equal
-
Parameters
Returns boolean
Static greaterOrEqual
-
Parameters
Returns boolean
Static greaterThan
-
Parameters
Returns boolean
Static lessOrEqual
-
Parameters
Returns boolean
Static lessThan
-
Parameters
Returns boolean
Static months
-
Parameters
Static mulScalar
-
Parameters
Static notEqual
-
Parameters
Returns boolean
Static weeks
-
Parameters
Static years
-
Parameters
This class provides a Period (length + TimeUnit) class and implements a limited algebra.
test self-consistency of algebra is checked.