NowValue
Class: NowValue
Defined in: packages/ql/src/query.ts:76
Dynamic value representing the current timestamp (in milliseconds since epoch) with an optional duration offset
Extends
Constructors
Constructor
new NowValue(
offsetMs?,raw?):NowValue
Defined in: packages/ql/src/query.ts:83
Parameters
offsetMs?
number = 0
offset in milliseconds to add to Date.now()
raw?
string
original duration string literal (if parsed from one)
Returns
NowValue
Overrides
Properties
name
readonlyname:"NOW"="NOW"
Defined in: packages/ql/src/query.ts:77
Overrides
offsetMs
readonlyoffsetMs:number=0
Defined in: packages/ql/src/query.ts:84
offset in milliseconds to add to Date.now()
raw?
readonlyoptionalraw?:string
Defined in: packages/ql/src/query.ts:85
original duration string literal (if parsed from one)
Methods
resolve()
resolve():
number
Defined in: packages/ql/src/query.ts:94
Resolve to current timestamp + offset
Returns
number
timestamp in milliseconds
Overrides
toString()
toString():
string
Defined in: packages/ql/src/query.ts:102
String representation of NOW function call
Returns
string
WQL NOW function string