Variable | Declaration Method | Meaning |
---|---|---|
system.biz.date | ${system.biz.date} |
The day before the schedule time of the daily scheduling instance, the format is yyyyMMdd |
system.biz.curdate | ${system.biz.curdate} |
The schedule time of the daily scheduling instance, the format is yyyyMMdd |
system.datetime | ${system.datetime} |
The schedule time of the daily scheduling instance, the format is yyyyMMddHHmmss |
Support custom variables in the code, declaration way: ${variable name}
. Refers to "System Parameter".
Benchmark variable defines as $[...]
format, time format $[yyyyMMddHHmmss]
can be decomposed and combined arbitrarily, such as: $[yyyyMMdd]
, $[HHmmss]
, $[yyyy-MM-dd]
, etc.
Or define by the following two ways:
Use add_month(yyyyMMdd, offset) function to add or minus number of months. The first parameter of this function is [yyyyMMdd], represents the time format and the second parameter is offset, represents the number of months the user wants to add or minus.
$[add_months(yyyyMMdd,12*N)]
$[add_months(yyyyMMdd,-12*N)]
$[add_months(yyyyMMdd,N)]
$[add_months(yyyyMMdd,-N)]
Add or minus numbers directly after the time format.
$[yyyyMMdd+7*N]
$[yyyyMMdd-7*N]
$[yyyyMMdd+N]
$[yyyyMMdd-N]
$[HHmmss+N/24]
$[HHmmss-N/24]
$[HHmmss+N/24/60]
$[HHmmss-N/24/60]