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
allow '$' to indicate last day-of-month #20
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed a few issues reading the diff, I haven't tried running it yet.
No.
p vixie
|
Paul and me had a discussion about adding the feature of last day of month, because there are things you must do on the last day of the month, like: - pay your rent, mortgage - visit your mother or parole officer - calculate paychecks for your empoyees You may see the PR here: vixie/cron#20 Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
Paul and me had a discussion about adding the feature of last day of month, because there are things you must do on the last day of the month, like: - pay your rent, mortgage - visit your mother or parole officer - calculate paychecks for your empoyees You may see the PR here: vixie/cron#20 Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
Paul and I had a discussion about adding the feature of last day of month, there are things you must do on the last day of the month, like: - pay your rent, mortgage - visit your mother or parole officer - calculate paychecks for your empoyees So this is a resonable feature, see the PR here: vixie/cron#20 Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
Paul and I had a discussion about adding the feature of last day of month, there are things you must do on the last day of the month, like: - pay your rent, mortgage - visit your mother or parole officer - calculate paychecks for your empoyees So might be a reasonable feature, backport from this PR: vixie/cron#20 Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
Paul and I had a discussion about adding the feature of last day of month, there are things you want do on the last day of the month, like: - pay your rent, mortgage - visit your mother or parole officer - calculate paychecks for your empoyees So this might be a reasonable feature, backport from this PR: vixie/cron#20 Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
In load_entry, for @daily or @midnight, we should set every bit for the dow bitstr_t, pull request 16 just set FIRST_DOW, which wrong; for @hourly, the set_element of dow is redundant since set_range set each bit of dow. I believe these are typos when replacing bit_set/bit_nset using set_element/set_range, I did't review it carefully, sorry for the inconvenient. Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
62a064f replaced the for loop of set_element with the newly added set_range, so the variable i is no longer needed. Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Paul and I had a discussion about adding the feature of last day of month, there are things you want do on the last day of the month, like: - pay your rent, mortgage - visit your mother or parole officer - calculate paychecks for your empoyees So this might be a reasonable feature, the idea using '$' to indicate last day-of-month came from regex syntax, '$' is the end of a line. backport from this PR: vixie/cron#20 Signed-off-by: Junwang Zhao <zhjwpku@gmail.com>
Co-authored-by: Junwang Zhao zhjwpku@gmail.com