arlas-web-contributors / Exports / DateExpression

Class: DateExpression

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DateExpression(anchorDate?, translationDuration?, translationUnit?, roundingUnit?)

Parameters

Name Type
anchorDate? any
translationDuration? any
translationUnit? any
roundingUnit? DateUnitEnum

Defined in

src/models/models.ts:254

Properties

anchorDate

anchorDate: string | number

Defined in

src/models/models.ts:249


roundingUnit

roundingUnit: DateUnitEnum

Defined in

src/models/models.ts:252


translationDuration

translationDuration: number

Defined in

src/models/models.ts:250


translationUnit

translationUnit: DateUnitEnum

Defined in

src/models/models.ts:251

Methods

toMillisecond

toMillisecond(roundUp, useUtc): number

Parameters

Name Type
roundUp boolean
useUtc boolean

Returns

number

Defined in

src/models/models.ts:280


toString

toString(): string

Returns

string

Defined in

src/models/models.ts:261


toDateExpression

Static toDateExpression(expression): DateExpression

Parameters

Name Type
expression string

Returns

DateExpression

Defined in

src/models/models.ts:333