m (formatting) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 24: | Line 24: | ||
*** <code>[[Datatypes#dateTime|dateTime]]</code> | *** <code>[[Datatypes#dateTime|dateTime]]</code> | ||
*** <code>[[Datatypes#date|date]]</code> | *** <code>[[Datatypes#date|date]]</code> | ||
+ | *** <code>[[Datatypes#weekday|weekday]]</code> | ||
|- | |- | ||
| <code>value</code> | | <code>value</code> | ||
Line 30: | Line 31: | ||
** hardcoded value (any <code>long</code> number) | ** hardcoded value (any <code>long</code> number) | ||
** keyword | ** keyword | ||
− | *** <code> | + | *** <code>now</code> - sets current timestamp into variable, currently only this keyword supports <code>weekday</code> target |
− | *** <code> | + | *** <code>startToday</code> - sets timestamp of beginning of current day into variable |
− | *** <code> | + | *** <code>startTodayGMT</code> - sets timestamp of beginning of current day as GMT into variable |
− | *** <code> | + | *** <code>startTomorrow</code> - sets timestamp of beginning of next day into variable |
− | *** <code> | + | *** <code>startTomorrowGMT</code> - sets timestamp of beginning of next day as GMT into variable |
− | *** <code> | + | *** <code>endToday</code> - sets timestamp of end of current day into variable |
− | *** <code> | + | *** <code>endTomorrow</code> - sets timestamp of end of next day into variable |
|- | |- | ||
|} | |} | ||
Line 66: | Line 67: | ||
| numeric value or keyword which is used to generate value | | numeric value or keyword which is used to generate value | ||
* Valid value: | * Valid value: | ||
− | ** <code> | + | ** <code>calculation</code> keyword |
|- | |- | ||
| <code>expression</code> | | <code>expression</code> | ||
− | | calculation expression (e.g. now-43200000) | + | | calculation expression (e.g. <code>now-43200000</code>) |
|- | |- | ||
|} | |} |
Latest revision as of 13:46, 11 September 2017
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, currently only this keyword supportsweekday
targetstartToday
- sets timestamp of beginning of current day into variablestartTodayGMT
- sets timestamp of beginning of current day as GMT into variablestartTomorrow
- sets timestamp of beginning of next day into variablestartTomorrowGMT
- sets timestamp of beginning of next day as GMT into variableendToday
- sets timestamp of end of current day into variableendTomorrow
- sets timestamp of end of next day into variable
- hardcoded value (any
- Valid value:
Example
@variable/currentTime
- targetnow
- 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
)- Valid value:
Example
@variable/currentTime
- targetcalculation
- keywordnow-43200000
- expression
- ⤷
[gn:act_setTimestampToVar]|[@variable/nowMinus12h,calculation;now-43200000]
- ⤷