Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

quartethealth/clj-cron-parse

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-cron-parse

A Clojure library for using cron expressions.

The library mainly consists of one function, next-date, which takes a cron expression and a from date and returns the next org.joda.time.DateTime to occur for that cron expression. From this function you should be able to do anything you want using cron expressions.

Usage

In Leiningen add the dependency Clojars Project

(require '[clj-cron-parse.core :refer [next-date]])
(def now (t/date-time 2015 01 01 12 00 00 000))

(def next-every-second
    (next-date now "1 * * * * *"))

(def next-every-year
    (next-date now "@yearly"))

License

Copyright © 2015 David Smith

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

A Clojure library for using cron expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Clojure 100.0%