Monthly Archives: April 2007

Parsing Crontab Syntax With Java

I wrote a small piece of code I wanted to share: I wanted to parse/interpret crontab style syntax in java and found out that there is not a single simple way to do this available right now. So I wrote a very basic parser.

Allows you to parse syntax like: */15,12 7-11,13-17 * * 1-5

Download the source

Update: It seems this code is now to be found in certain IBM products (with my permission).