当前位置:网站首页>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)
边栏推荐
- Leetcode 185 All employees with the top three highest wages in the Department (July 4, 2022)
- Codeforces Round #804 (Div. 2)
- 边缘计算如何与物联网结合在一起?
- iframe
- C # to obtain the filtered or sorted data of the GridView table in devaexpress
- Go language learning notes - first acquaintance with go language
- Operators
- How can edge computing be combined with the Internet of things?
- A mining of edu certificate station
- About the use of Vray 5.2 (self research notes)
猜你喜欢
Honing · fusion | know that the official website of Chuangyu mobile terminal is newly launched, and start the journey of digital security!
Question bank and answers of special operation certificate examination for main principals of hazardous chemical business units in 2022
32: Chapter 3: development of pass service: 15: Browser storage media, introduction; (cookie,Session Storage,Local Storage)
IPv6与IPv4的区别 网信办等三部推进IPv6规模部署
[JS learning notes 54] BFC mode
Bidirectional RNN and stacked bidirectional RNN
【广告系统】Parameter Server分布式训练
[advertising system] parameter server distributed training
Three suggestions for purchasing small spacing LED display
龙蜥社区第九次运营委员会会议顺利召开
随机推荐
龙蜥社区第九次运营委员会会议顺利召开
deepfake教程
基于OpenHarmony的智能金属探测器
regular expression
Do you really understand the things about "prototype"? [part I]
SLAM 01. Modeling of human recognition Environment & path
spark调优(一):从hql转向代码
-26374 and -26377 errors during coneroller execution
如何通俗理解超级浏览器?可以用于哪些场景?有哪些品牌?
Oneforall installation and use
Wechat nucleic acid detection appointment applet system graduation design completion (8) graduation design thesis template
2022 t elevator repair operation certificate examination questions and answers
MFC pet store information management system
FreeRTOS 中 RISC-V-Qemu-virt_GCC 的调度时机
Bidirectional RNN and stacked bidirectional RNN
Modulenotfounderror: no module named 'scratch' ultimate solution
[advertising system] incremental training & feature access / feature elimination
Basic testing process of CSDN Software Testing Introduction
Applet framework taro
Dspic33ep clock initialization program