3 ms·
Alternatively, there is the iCalendar recurrence rule syntax [0]. It shows how complex recurrency rules can get. Cron could be considered as a good mix between
by smhg 10y ago
Alternatively, there is the iCalendar recurrence rule syntax [0]. It shows how complex recurrency rules can get.
Cron could be considered as a good mix between complexity and brevity (readability).
Shameless plug: I tried to create a format in-between both in a JS project [1]. It is based on the ISO 8601 duration format [2], but it's better to stick to iCalendar.
[0] https://tools.ietf.org/html/rfc2445#section-4.3.10 https://tools.ietf.org/html/rfc2445#section-4.3.10
[1] https://github.com/smhg/date-frequency-js https://github.com/smhg/date-frequency-js
[2] https://en.wikipedia.org/wiki/ISO_8601#Durations https://en.wikipedia.org/wiki/ISO_8601#Durations