Closed jgornick closed 6 years ago
Interesting idea. Ideally an existing implementation of a cron expressions parser would be used.
Does anyone else have any ideas on how one might go about doing this? I looked at cron-parser as suggested by @jkbrzt but it simply parses cron string into "intervals" that you can iterate through. I don't see how that could be particularly useful in this feat. I'm having a hard time coming up with any solutions to the iCal -> cron conversion we're looking for.
@jpmckearin @jakubroztocil @jgornick, did you find anything? Where'd you land?
Sorry @cdaringe I am afraid I can't be of much help. Soon after this we moved to using all cron to get around conversion issues.
thanks @jpmckearin. for others, i did find this. it looks pretty promising as something that takes RRule
s as input and does something on rule ticks. its not quite what this thread was all about, but close enough. Olivier's code wasn't merged, but it looks moderately robust and tested from a cursory view :)
I think the main blocker is that RRULE is much more granular than cron -- or at least i've found that to be the case, correct me if i'm wrong.
I think this issue is dead. Please update if more support is needed!
When you want to use rrule with another library that schedules jobs to run, they use cron expressions. It'd be nice to convert an rrule to a cron expression.