Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cron 不支持7位吗? #104

Closed
miaoweiwei opened this issue Dec 10, 2021 · 3 comments
Closed

cron 不支持7位吗? #104

miaoweiwei opened this issue Dec 10, 2021 · 3 comments

Comments

@miaoweiwei
Copy link

0 1/2 * * * ? 2021 这样,最近10次提示如下

每隔 2 分钟, 在每小时的第 1 分钟开始, 仅于 2021 年

最近10次执行时间
Error: Invalid cron expression

0 1/2 * * * ? 这样就可以

每隔 2 分钟, 在每小时的第 1 分钟开始

最近10次执行时间
第1次: 2021-12-10 12:37:00
第2次: 2021-12-10 12:39:00
第3次: 2021-12-10 12:41:00
第4次: 2021-12-10 12:43:00
第5次: 2021-12-10 12:45:00
第6次: 2021-12-10 12:47:00
第7次: 2021-12-10 12:49:00
第8次: 2021-12-10 12:51:00
第9次: 2021-12-10 12:53:00
第10次: 2021-12-10 12:55:00
@baiy
Copy link
Owner

baiy commented Dec 10, 2021

确实不支持 当前使用的解析器不支持7位表达式 详见:harrisiirak/cron-parser#174

@miaoweiwei
Copy link
Author

harrisiirak/cron-parser#174
好的

@baiy baiy closed this as completed Dec 29, 2021
@miaoweiwei
Copy link
Author

miaoweiwei commented Dec 29, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants