当前位置:网站首页>Dolphin scheduler uses system time
Dolphin scheduler uses system time
2022-06-28 09:25:00 【Programming enthusiast Xiong Lang】
1、DolphinScheduler Custom parameters ( Braces and brackets ):
( One )、 User defined parameters :${
Parameter name }
( Two )、 User defined time parameters :$[yyyyMMddHHmmss], Can be any combination $[yyyy-MM-dd HH:mm:ss]
( 3、 ... and )、 System time parameters ( When supplementing data, you need to use ):
2、 usage ( Year, month, day, hour, minute and second can be added or subtracted separately , After splicing ):
( One )、add_months() Month of addition and subtraction , Addition and subtraction 12 Month is the year , Format can be said yyyyMMdd,yyyyMM,yyyy
after N year :$[add_months(yyyyMMdd,12*N)]
Such as :$[add_months(20220624,12*2)] result :20240624
front N year :$[add_months(yyyyMMdd,-12*N)]
Such as :$[add_months(20220624,-12*2)] result :20200624
after N month :$[add_months(yyyyMMdd,N)]
Such as :$[add_months(20220624,2)] result :20220824
front N month :$[add_months(yyyyMMdd,-N)]
Such as :$[add_months(20220624,-2)] result :20200424
( Two )、 direct ± It means adding or subtracting days , Addition and subtraction 7 A day is a week , Format can be said yyyyMMdd,yyyyMM,yyyy
after N Zhou :$[yyyyMMdd+7*N]
Such as :$[20220624+7*2] result :20220708
front N Zhou :$[yyyyMMdd-7*N]
Such as :$[20220624-7*2] result :20220610
after N God :$[yyyyMMdd+N]
Such as :$[20220624+2] result :20220626
front N God :$[yyyyMMdd-N]
Such as :$[20220624-2] result :20220622
( 3、 ... and )、 Minutes and seconds ± It's addition and subtraction, and it's also heaven , Days divided by 24 Hours , The front one counts as hours , Divided by 60 Represents minutes
after N Hours :$[HHmmss+N/24]
Such as :$[14:34:30+2/24] result :16:34:30
front N Hours :$[HHmmss-N/24]
Such as :$[14:34:30-2/24] result :12:34:30
after N minute :$[HHmmss+N/24/60]
Such as :$[14:34:30+2/24/60] result :14:36:30
front N minute :$[HHmmss-N/24/60]
Such as :$[14:34:30-2/24/60] result :14:32:30
( Four )、 Even if the format is just yyyy,yyyyMM,± It is also the addition and subtraction of days ,yyyy,yyyyMM Only the output format is similar to minutes and seconds
front N Days and months :$[yyyyMM-N]
Such as :$[202206-1] result :202206
Current system time 20220624, The result is 20220623, Be careful to cross the moon , year , Such as 20220701, The result is 202206
front N Minutes :$[HHmm-N/24/60]
Such as :$[14:34-2/24/60] result :14:32
( 5、 ... and )、 Parameters used for supplementary data
${
system.biz.date} : The day before the scheduled time of daily scheduling instance , The format is yyyyMMdd, When supplementing data , This date +1
${
system.biz.curdate} : Scheduled time of daily scheduling instance , The format is yyyyMMdd, When supplementing data , This date +1
${
system.datetime} : Scheduled time of daily scheduling instance , The format is yyyyMMddHHmmss, When supplementing data , This date +1
Write it like this , The scheduled task processes yesterday's data , When filling in data , If the time of data supplement is 20220624,${system.biz.date} This value right here is 20220624, Normal scheduling , This value will be 20220623



边栏推荐
- JDBC connection database (MySQL) steps
- RMAN backup message ora-19809 ora-19804
- 1182: group photo effect
- Divide and rule classic Hanoi
- Why does select * lead to low query efficiency?
- new URL(“www.jjj.com“)
- 结巴分词器_分词器原理
- 怎样在手机上开户?现在网上开户安全么?
- [ybtoj advanced training guidance] class roll call [string hash]
- Rman Backup Report Ora - 19809 Ora - 19804
猜你喜欢

Calcul des frais d'achat et de vente d'actions

Valentine's Day - VBS learning (sentences, love words)

SQL 优化经历:从 30248秒到 0.001秒的经历

JMeter -- interface test 1

104. maximum depth of binary tree

spark的资源调度和任务调度

DolphinScheduler使用系统时间

Data modeling based on wide table

Ingersoll Rand panel maintenance IR Ingersoll Rand microcomputer controller maintenance xe-145m

Rich text - Test Case
随机推荐
This article explains in detail the difficult problems and solutions faced by 3D cameras
Loggerfactory uses log4j Parameter introduction of properties
P2394 yyy loves Chemistry I
new URL(“www.jjj.com“)
Assertions used in the interface automation platform
JMeter -- interface test 2
手机号、邮箱正则验证[通俗易懂]
Test cases for learning the basic content of software testing (II)
Data modeling based on wide table
104. maximum depth of binary tree
Data mining modeling practice
Why does select * lead to low query efficiency?
线程和进程
异常处理4种方法
JMeter -- interface test 1
Apache Doris becomes the top project of Apache
异常
"Jianzhi offer" -- Interview Question 4: finding two-dimensional arrays
JVM系列(2)——垃圾回收
Prototype chain JS