new TimeTransform()
TimeTransfrom defines a transformation on time or duration data
- Source:
Members
(static) format :string
When datetime or durations are not in ISO8601 format, this format will be used to parse the datetime Implementation depends on the dataset. Crossfilter dataset uses momentjs
Type:
- string
- Source:
(static) transformedFormat :string
For durations, sets the new units to use (years, months, weeks, days, hours, minutes, seconds, miliseconds). Data will be transformed. For datetimes, reformats to a string using the momentjs or postgreSQL format specifiers. This allows a transformation to day of the year, or day of week etc.
Type:
- string
- Source:
(static) transformedReference :string
Controls conversion between datetimes and durations by adding or subtracting this date
Type:
- string
- Source:
(static) transformedZone :string
For datetimes, transform the date to this timezone.
Type:
- string
- Source:
(static) type :string
Type of datetime object: a datetime or a duration
Do not use directly, but use isDatetime and isDuration methods.
Type:
- string
- Source:
(static) zone :string
Timezone to use when parsing, for when timezone information is absent or incorrect.
Type:
- string
- Source:
Methods
(static) transform(momentjs) → {Object}
Parameters:
| Name | Type | Description |
|---|---|---|
momentjs |
Object |
- Source:
Returns:
momentjs
- Type
- Object