Skip to content

meirdev/cron-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Standard cron parser.

Topics

Resources

License

Stars

Watchers

Forks

Languages