当前位置:网站首页>Cron expression (seven subexpressions)
Cron expression (seven subexpressions)
2022-07-05 11:16:00 【pingcode】
One 、 Seven sub meanings
second | branch | when | Japan | month | Zhou | year | |
---|---|---|---|---|---|---|---|
Available values | 0~59 | 0~59 | 0~23 | 1~31 | 1~12(JAN-DEC) | 1~7(SUN-SAT) | 1970~2099 |
Available wildcards | , - * / | , - * / | , - * / | , - * / ? L W | , - * / | , - * / ? L # | , - * / |
If required | yes | yes | yes | yes | yes | yes | no |
Two 、 Description of available values
second (Seconds): Available numbers "0~59" Express .
branch (Minutes): Available numbers "0~59" Express .
when (Hours): Available numbers "0~23" Express .
Japan (Day-of-Month): Available numbers "1~31" Express , But pay attention to the number of days in a specific month .
month (Month): Available numbers "1~12" Or abbreviations "JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC" Express .
Zhou (Day-of-Week): Available numbers "1~7" Or abbreviations "SUN,MON,TUE,WED,THU,FRI,SAT" Express ( Pay attention when using numbers "1" Means Sunday ).
year (Year): Available numbers "1970~2099" Express , This item is not required .
3、 ... and 、 Wildcards can be used to describe
wildcard | Applicable domain | meaning | example |
---|---|---|---|
* | all | All values | Set at the point "*", It means that it will trigger every minute . |
? | Day and week ( Day and week cannot be both "?") | You don't need to care about the value of the current position , A day of the month , Or one day of the week | “0 0 0 1 * ?“ Means every month 1 No. triggers , But it doesn't matter what day of the week , So the position of the week is set to ”?”; “0 0 0 ? * 2" Indicates that it is triggered every Monday , But I don't care about the number , So the position of the day is set to ”?". |
- | all | Indicates the interval | Set at the time position "10-12", Express "10 spot 、11 spot 、12 spot " Trigger . |
, | all | Indicates that multiple values are specified | Set at the position of the week "MON,WED,FRI", Express " Monday 、 Wednesday 、 Friday " Trigger . |
/ | all | For incremental trigger | Set at the position of seconds "5/15", From 5 Seconds to start , every other 15 Second trigger once (5,20,35,50). Set on the position of the month "1/7", Means every month 1 The start , every other 7 Once a day . |
L(Last) | Day and week | Indicates the last day of each month or week ; XL Indicates the last week of each month X | "0 0 0 L * ?" Indicates that the last day of each month triggers ; "0 0 0 ? * L" It means that the last Saturday of each month triggers ; "0 0 0 ? * 2L" Indicates that the last Monday of each month triggers . |
W(Work) | Japan | Indicates the working day closest to the specified date ( Monday to Friday , Ignore holidays )("W" The number before indicates the number ) | Set on the position of the day "15W", It means to leave 15 The latest working day of No. is triggered ( if 15 It's Saturday , be 14 No. triggers ; if 15 It's Sunday , be 16 No. triggers ; if 15 No. is a working day , Then trigger on the same day ); Set on the position of the day "1W", In the current month 1 The most recent working day after the .( if 1 It's Saturday , be 3 No. triggers ); “L" and "W" Can be used in combination . If you set... On the day field "LW”, It means triggered on the last working day of this month . |
# | Zhou | N#M Represents the... Of every month M Week N | "0 0 0 ? 5 1#2" It means mother's day ( Every year, 5 The second Sunday of the month ); "0 0 0 ? 6 1#3" It means father's day ( Every year, 6 The third Sunday of the month ). |
attach : On-line Cron Expression generator (pppet.net)
边栏推荐
- Paradigm in database: first paradigm, second paradigm, third paradigm
- 2022 t elevator repair operation certificate examination questions and answers
- iframe
- Dspic33ep clock initialization program
- go语言学习笔记-初识Go语言
- Buried point 111
- PWA (Progressive Web App)
- Explanation of message passing in DGL
- R3live series learning (IV) r2live source code reading (2)
- 关于 “原型” 的那些事你真的理解了吗?【上篇】
猜你喜欢
【Oracle】使用DataGrip连接Oracle数据库
How to make full-color LED display more energy-saving and environmental protection
修复动漫1K变8K
Operation of simulated examination platform of special operation certificate examination question bank for safety production management personnel of hazardous chemical production units in 2022
无密码身份验证如何保障用户隐私安全?
关于vray 5.2的使用(自研笔记)
COMSOL--建立几何模型---二维图形的建立
Summary of thread and thread synchronization under window
华为设备配置信道切换业务不中断
NFT 交易市场主要使用 ETH 本位进行交易的局面是如何形成的?
随机推荐
deepfake教程
DOM//
如何让全彩LED显示屏更加节能环保
Bracket matching problem (STL)
基础篇——基础项目解析
Golang application topic - channel
Variables///
如何通俗理解超级浏览器?可以用于哪些场景?有哪些品牌?
[advertising system] incremental training & feature access / feature elimination
Characteristics and electrical parameters of DDR4
Redis如何实现多可用区?
I used Kaitian platform to build an urban epidemic prevention policy inquiry system [Kaitian apaas battle]
Codeforces Round #804 (Div. 2)
使用GBase 8c数据库过程中报错:80000305,Host ips belong to different cluster ,怎么解决?
Data types ntext and varchar are incompatible in the not equal to operator - 95 small pang
regular expression
AUTOCAD——遮罩命令、如何使用CAD对图纸进行局部放大
DDR4的特性与电气参数
[Oracle] use DataGrid to connect to Oracle Database
TSQL – identity column, guid, sequence