Skip to content

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:166

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:163


roundingUnit

● roundingUnit: DateUnitEnum

Defined in models/models.ts:166


translationDuration

● translationDuration: number

Defined in models/models.ts:164


translationUnit

● translationUnit: DateUnitEnum

Defined in models/models.ts:165


Methods

toMillisecond

toMillisecond(roundUp: boolean): number

Defined in models/models.ts:194

Parameters:

Name Type
roundUp boolean

Returns: number


toString

toString(): string

Defined in models/models.ts:175

Returns: string


<Static> toDateExpression

toDateExpression(expression: string): DateExpression

Defined in models/models.ts:239

Parameters:

Name Type
expression string

Returns: DateExpression