Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 581 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 581 Bytes

Cron Parser

A parser for cron expressions, it only supports the standard cron format as described at https://linux.die.net/man/5/crontab.

Example

from cron_parser import parse_expression

expression = parse_expression("15 14 1 * *")

it = expression.iterator()

for i in range(5):
    print(next(it))
2022-11-01 14:15:00
2022-12-01 14:15:00
2023-01-01 14:15:00
2023-02-01 14:15:00
2023-03-01 14:15:00

To-do