From wiki.ginstr.com
Revision as of 15:57, 12 July 2017 by Mark (talk | contribs) (formatting)
Jump to: navigation, search

gn:act_setTimestampToVar

Description
Action used to load special timestamp values to variable which are defined by keywords, or hardcoded value.
Action returns
void

Action signatures

Set timestamp to variable

[gn:act_setTimestampToVar]|[target,value]
Parameter Description
target target where the value will be stored
value numeric value or keyword which is used to generate value
  • Valid value:
    • hardcoded value (any long number)
    • keyword
      • NOW - sets current timestamp into variable
      • START_TODAY - sets timestamp of beginning of current day into variable
      • START_TODAY_GMT - sets timestamp of beginning of current day as GMT into variable
      • START_TOMORROW - sets timestamp of beginning of next day into variable
      • START_TOMORROW_GMT - sets timestamp of beginning of next day as GMT into variable
      • END_TODAY - sets timestamp of end of current day into variable
      • END_TOMORROW - sets timestamp of end of next day into variable

Example

@variable/currentTime - target
now - keyword
[gn:act_setTimestampToVar]|[@variable/currentTime,now]

Set calculated timestamp to variable

[gn:act_setTimestampToVar]|[target,value;expression]
Parameter Description
target target where the value will be stored
value numeric value or keyword which is used to generate value
  • Valid value:
    • CALCULATION keyword
expression calculation expression (e.g. now-43200000)

Example

@variable/currentTime - target
calculation - keyword
now-43200000 - expression
[gn:act_setTimestampToVar]|[@variable/nowMinus12h,calculation;now-43200000]