Comments (7)
Hi @cliftonmyers, the ?
operator is not supported, as such 0 8 ? * * *
will fail.
Additionally, please use the format specified on the Cron Wikipedia page.
30 9 * * MON,WED,FRI *
(note I have removed the ?
from your example) should be 30 9 * * 1,3,5 *
, which will run at 09:30AM every Monday, Wednesday, and Friday.
from swiftcron.
Okay so i will need to do some hacks on the cronExpressions i am receiving in order to be parsed correctly using your library.
What about the operator "/", it is not supported as well right?
what is the alternative to it, if i want to replace it with something that actually works?
from swiftcron.
You'll just need to do some find and replace before creating a CronExpression
with the expressions you're receiving. Alternatively feel free to implement the features you'd want, I'd welcome the contribution.
from swiftcron.
Actually, i searched many pods parsing crons, but yours was the best, others were beginners.
I thought that it would cover all the formats, but surprisingly it is not.
When i have time i can add support to additional features, but currently i m tight on my deadline, and the "/" will be a blocker for me.
Can you find a way to help implementing it soon, and i promise i will be contributing in the future with making this library better.
from swiftcron.
There is currently a ticket open for the / operator.
I don't have the capacity to work on this myself at present and I'd most likely miss your deadline. What I could do is guide you through the code base and the best way of implementing it. If you're willing to give it a bash, just let me know.
from swiftcron.
so basically, you are not using the quartz variation for the cronExpression.
Can you tell me which variation you are using, maybe if i get another response with this variation, it could work better.
from swiftcron.
The library is using the standard format specified on the Cron Wikipedia page.
Implementing the special operators from the Quartz variation is desired, but not yet complete.
from swiftcron.
Related Issues (20)
- Make use of the CronRepresentation struct
- Better date matching
- Utilize CronField enum more
- CronFieldTranslatable interface
- Initialize a CronExpression using NSDateComponents
- Add perfomBlockWithCron method
- README assets
- Get running on tvOS, OS X, and watchOS
- Remove the Year field
- Test descriptions of all possible permutations of a cron string HOT 1
- Handle list items in NSDate.nextDate(matchingUnit: value:)
- Make the expression conform to StringRepresentable
- Reimplement ability to specify 'W' for day
- Reimplement use of steps (/)
- Reimplement use of ranges (-)
- Carthage availability HOT 3
- Minimum deployment target is not 9.0 HOT 2
- Can't import from Swift 5.3.2 / Xcode 12
- Can a cron job be cancelled ?
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 swiftcron.