-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Offset from cron date #120
Comments
@dragonmantank would love to hear your opinions :) |
@DerekCresswell what do you think? Thanks. |
Sounds like an interesting addition to me. However, I don't think such a thing would be accepted. The maintainer of the repository considers it feature complete. So such a change is unlikely to be added. I would just say extend the class yourself and add this functionality to it. |
Thanks, I mistook you as the maintainer as only your name appeared when I looked through the recent commits. |
@dragonmantank possible to say a yes or no? (preferrably yes 🤣) |
Thanks for the suggestion. As @DerekCresswell mentioned this library tries to stick to the original C implementation as much as possible, so I'm not sure I would add this. I will gladly leave open for others to see if they would like it though. |
Thanks @dragonmantank How do we vote? |
I just leave it open for anyone else to chime in. I added the label to make it easier for people to find when looking through issues, because we have a few feature requests that are like this (might make life easier, but diverge from the original implementation). |
@bilogic correct me if I am wrong but can't you not rewrite the code this way ? $cron = new Cron\CronExpression('@quarterly');
echo $cron->getNextRunDate(null, 2)->sub(DateInterval::createFromDateString('7 days'))->format('Y-m-d H:i:s'); Seems to me that nothing needs to be added to the library to achieve what you are looking for 🤔 Or did I miss something ? |
I can't remember my exact thought process, but I'm using this library via Laravel's schedule. I vaguely recall being able to expose an instance of this library, and thus wanted to be able to |
@nyamsprod I revisited this, this repo's |
Hi,
shift()
and dependency on https://github.com/briannesbitt/CarbonThe text was updated successfully, but these errors were encountered: