开发者

Do you know any library or code in PHP to check if a date satisfies a given cron expression?

开发者 https://www.devze.com 2023-01-02 20:41 出处:网络
I was wondering if some of you know about a library in php so that I can pass a date and a cron expression and it tells me wether the date satisfies the cron expression or not. The java Quartz library

I was wondering if some of you know about a library in php so that I can pass a date and a cron expression and it tells me wether the date satisfies the cron expression or not. The java Quartz library is able开发者_如何转开发 to do that (and more like getting the next valid date for a given cron expression) but I was wondering if this is possible using php.

Thank you!


I can't vouch for this code, but there's a cron parser at PHP Classes.

And there's a similar question on SO that might be useful.

0

精彩评论

暂无评论...
验证码 换一张
取 消