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

Add method capable of parsing standard cron spec #73

Merged
merged 1 commit into from
Sep 14, 2016

Conversation

soltysh
Copy link

@soltysh soltysh commented Sep 13, 2016

Currently Parse method accepts 5 or 6 entries, where the first field denotes seconds. ParseStandard method follows standard cron spec requiring to pass exactly 5 entries where the first is minute and last
is day of week. See https://en.wikipedia.org/wiki/Cron.

Fixes #58.

@robfig as promised some time ago, ptal
@bryanvpham fyi

@soltysh
Copy link
Author

soltysh commented Sep 13, 2016

I'm open to suggestions wrt method name, I've personally considered ParseShort, ParseStd, ParseExact.

Currently Parse method accepts 5 or 6 entries, where the first field
denotes seconds. ParseStandard method follows standard cron spec
requiring to pass exactly 5 entries where the first is minute and last
is day of week. See https://en.wikipedia.org/wiki/Cron.
@robfig
Copy link
Owner

robfig commented Sep 14, 2016

Makes sense. Agreed that name doesn't seem ideal but I can't think of anything better.
Thanks!

@robfig robfig merged commit 23baae2 into robfig:master Sep 14, 2016
@robfig robfig mentioned this pull request Sep 14, 2016
@soltysh soltysh deleted the issue58 branch September 14, 2016 09:09
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

Successfully merging this pull request may close these issues.

2 participants