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:87
Create a new NowValue instance
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:80
Name
Overrides
offsetMs
readonlyoffsetMs:number=0
Defined in: packages/ql/src/query.ts:88
offset in milliseconds to add to Date.now()
raw?
readonlyoptionalraw?:string
Defined in: packages/ql/src/query.ts:89
original duration string literal (if parsed from one)
Methods
resolve()
resolve():
number
Defined in: packages/ql/src/query.ts:98
Resolve to current timestamp + offset
Returns
number
timestamp in milliseconds
Overrides
toString()
toString():
string
Defined in: packages/ql/src/query.ts:106
String representation of NOW function call
Returns
string
WQL NOW function string