Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cron

cron is package that parses and expands cron expressions (see the Godoc for more on which features are supported).

Also provided is a command line which takes an expression as its only input and prints the expanded expression.

Usage

With a recent version of Go installed.

You can build the command with go build -o parse cmd/parse/main.go or run it directly, e.g:

% go run cmd/parse/main.go "*/15 0 1,15 * 1-5 /usr/bin/find"
minute		0 15 30 45
hour		0
day of month	1 15
month		1 2 3 4 5 6 7 8 9 10 11 12
day of week	1 2 3 4 5
command		/usr/bin/find

Running tests

Tests can be run the same way as any other Go projects, e.g:

go test

About

Code sample project to parse cron expressions

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages