arlas-web-contributors > "models/models" > DateExpression

Class: DateExpression

Hierarchy

DateExpression

Index

Constructors

Properties

Methods


Constructors

constructor

new DateExpression(anchorDate?: any, translationDuration?: any, translationUnit?: any, roundingUnit?: DateUnitEnum): DateExpression

Defined in models/models.ts:231

Parameters:

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

Returns: DateExpression


Properties

anchorDate

● anchorDate: number | string

Defined in models/models.ts:228


roundingUnit

● roundingUnit: DateUnitEnum

Defined in models/models.ts:231


translationDuration

● translationDuration: number

Defined in models/models.ts:229


translationUnit

● translationUnit: DateUnitEnum

Defined in models/models.ts:230


Methods

toMillisecond

toMillisecond(roundUp: boolean, useUtc: boolean): number

Defined in models/models.ts:259

Parameters:

Name Type
roundUp boolean
useUtc boolean

Returns: number


toString

toString(): string

Defined in models/models.ts:240

Returns: string


<Static> toDateExpression

toDateExpression(expression: string): DateExpression

Defined in models/models.ts:312

Parameters:

Name Type
expression string

Returns: DateExpression