In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
What are the common expressions in Cron? To solve this problem, the editor summarizes this article on Cron expressions today, hoping to help more friends who want to solve this problem to find a more simple and easy way.
Cron expression time domain sequence number meaning value range special character 1 second Seconds0-59 momentum lash 2 minutes Minutes0-59 qinxing 3 hours Hours0-23 DayOfMonth1 4 date DayOfMonth1-31 DayOfMonth1 /? LW C May Month1-12 mahjong / JAN-DEC6 week DayOfWeek1-7 mahjong /? L C # SUN-SAT7 year Year (optional) 1970-2099 JAN-DEC month English abbreviation SUN-SAT week 1 means Sunday, 2 means Monday, and so on * indicates all digits in the value range / means triggered at regular intervals. For example, zero stroke 5 represents every 5 unit time starting from 0-indicates the range between two digits. For example, 3-7 represents between 3 and 7, including 3 and 7, representing discrete enumerated numbers, such as 2, 3, 5, 7, indicating the specified time? It can only be used in the fields of date DayOfMonth and week DayOfWeek to avoid the interaction between date and week. For example, if you specify the 20th day of each month, no matter what day it is, the correct way to write it is: 0020 * *, in which the week can only be used. If you use *, an error will be triggered. L can only be used for date DayOfMonth and week DayOfWeek, used for date time to indicate the last day of the month, for week time to indicate Saturday without a number, and plus number to indicate the last day of the week. For example, 000? * 5L means that the last Thursday of each month W can only be used for date DayOfMonth, indicating a valid working day from Monday to Friday, and the event will be triggered on the nearest valid working day from the specified date. For example, if 5W is used on the date, if the 5th is Saturday, it will be triggered on the most recent working day Friday (4th). If the 5th is Sunday, it is triggered on the 6th (Monday); if the 5th is one of the days from Monday to Friday, it is triggered on the 5th. Another point is that W's recent working day search will not cross months. When LW is used in conjunction with two characters, it indicates the last working day of a month # can only be used for the week DayOfWeek, indicating what day of the month it is. For example, 4: 2 indicates the common expression of the second Wednesday.
0Up 5 *? Every 5 seconds
0 0B 5 *? 0 06 * * every 5 minutes? 6: 009 every morning. 13. 19 *? Every day at 9: 00 a. M., 1: 00 p. M., 7: 00 a. M. and 7: 00 p. M. Every two hours between 11:00 and 7 a.m., and 8 a.m., 30 9-17 *? 009-21 per half hour during 9-to-5 working hours? * MON-SAT means 007 LW per hour per day in 996. The last working day of each month at 7: 00 4 1 1 in the morning? 4: 00 a. M. on January 1 every year
After reading this article, have you learned how to use Cron expressions? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.