shigoto_cron_parser (shigoto v1.9.10)
View SourceParses standard 5-field cron expressions and checks if a given datetime matches. Fields: minute, hour, day-of-month, month, day-of-week.
Supported syntax per field:
*— any valueN— exact valueN-M— inclusive range*/N— step from startN-M/S— step within rangeN,M,O— comma-separated list (each element may be a value, range, or step)
Aliases: @yearly, @annually, @monthly, @weekly, @daily, @midnight, @hourly.
Summary
Types
-type field() :: star | {step, pos_integer()} | {values, [non_neg_integer()]}.