Closed dcluna closed 6 years ago
👍 this would be great to have in the library! Useful for a standard representation to exchange with other languages too, like say later.js
!
@dcluna Thanks!
Perhaps a nice-to-have would be a convenience method, Recurrence#to_cron
, so library users don't need to know about Montrose::Frequency
.
I use this gem to save some recurring events in a database. Sometimes I need to generate a crontab from a list of these recurrences, for which these shortcuts are handy.
I understand this may have some caveats given the unspecified behavior of crontab extensions. Still, I assume this is a common enough scenario for users of this gem, so please consider including this.
To use them, one can do the following: