new DurationTransform()
DurationTransfrom defines a transformation on duration data
- Source:
Members
(static) referenceMoment :moment
Reference momentjs for duration <-> datetime conversion
- Source:
Type:
-
moment
(static) transformedMax :number
The maximum value this facet can take, after the transformation has been applied
- Source:
Type:
-
number
(static) transformedMaxAsText :number
The maximum value this facet can take, after the transformation has been applied
- Source:
Type:
-
number
(static) transformedMin :number
The minium value this facet can take, after the transformation has been applied
- Source:
Type:
-
number
(static) transformedMinAsText :number
The minimum value this facet can take, after the transformation has been applied
- Source:
Type:
-
number
(static) transformedReference :string
Controls conversion to datetime by adding this date
- Source:
Type:
-
string
(static) transformedType :string
The type of the facet after the transformation has been applied
- Source:
Type:
-
string
(static) transformedUnits :string
For durations, transforms duration to these units
- Source:
Type:
-
string
(static) units :string
Units of the duration
- Source:
Type:
-
string
Methods
(static) transform(inval) → {Object}
Apply the configured transformation to this Facet's value
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
inval |
Object
|
momentjs duration |
Returns:
- Type:
-
Object
outval momentjs duration or datetime