Comments (6)
have you set the zero based option?
https://github.com/RedHogs/cron-parser/blob/master/cron-parser-core/src/main/java/net/redhogs/cronparser/Options.java#L64
from cron-parser.
isZeroBasedDayOfWeek() returns true, but 0 does not parse.
from cron-parser.
Hello. I am currently experiencing the same problem as Kathy. For example, "0,6" will be invalid while "6,7" gives Saturday and Sunday.
isZeroBasedDayOfWeek() is true
Thanks!
from cron-parser.
I have a suspect for where the problem is. In DayOfWeekDescriptionBuilder, lines 45-46, it looks like you're setting the day of the week to 7 if it's <= 1 and we're NOT zero based. The not in front of the zero based seems to be the issue -- if I step through and change that manually at break points, it behaves as expected.
from cron-parser.
At quick glance, the issue appears to be with AbstractDescriptionBuilder line 19. If the expression is "0" then the description is set to ""
from cron-parser.
I'll have a fix out for this today, thanks for the pull request @mcallinder
from cron-parser.
Related Issues (20)
- Extra comma when more than one minute and hour 0 (midnight) HOT 2
- Incorrect parsing of "0 0 2/4 * * ?" HOT 1
- Time part from cron expression does not respect Locales whereas hour-part is 0-23h, not AM/PM. HOT 2
- In expression "0 0,5,10,15,20,25,30,35,40,45,50,55 * ? * *" the readable string appends an unexpected comma "," before the "and" preposition HOT 1
- Transforming 7 pos "every day" cron expression produces unexpected result
- Exception during parsing more than one hours scope HOT 1
- Incorrect description generation for expressions with hour range HOT 2
- Wrong Quartz (2.1) Cron expressions are being parsed with no issues
- Using Tuesday as day of the week is translated into Monday
- Should throw error for 0 0 0 ? * 0,1,2,3,4,5,6 *
- * 0 * * * incorectly shows as "Every minute" HOT 1
- "0 0 3/16 ? * * *" shows only "Every 16 hours, every year". does not have the start hour like "start at 3am"
- Support french human readable format HOT 1
- add chinese locale supporting
- Extend support for offset notation as in "*/10+2"
- 24 hour option not respected with english locale
- nextExecution for invalid date causes infinite loop HOT 1
- Incorrect description for 0 0 7 ? * 7#1
- Descrtiption for [0 */5 8-17 ? * *] is somewhat incorrect - and misleading HOT 1
- Japanese locale support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cron-parser.