Commit graph

5 commits

Author SHA1 Message Date
Josiah Carlson
662bd8a947 Fixes a bug and add support for returning the time
* When calculating the next() or previous() valid entry, the module wouldn't "backtrack" enough, and might miss a sooner crontab entry than was found. This has been fixed.
* Added the ability to return the timestamp of the future event, instead of just the delta (pass delta=False to .next() or .previous())
* Added a method to test a given timestamp or datetime against a Crontab entry
* Special thanks to Manish Dubey github.com/mdubey for the pull request that spawned these features, provided new tests, and prompted the discovery of the bug
2013-02-17 17:11:04 -08:00
Josiah Carlson
7ddf9cd2e1 Fix for specifiers like 1,L 2012-04-18 13:30:19 -07:00
Josiah Carlson
3cb7a6ad57 Fix for last day of the month bug.
* In some situations, asking for the last day of the month would return the first.
* Patch provided by Franco Lucchini.
2012-03-25 20:55:18 -07:00
Josiah Carlson
74914494a0 You can now find a previously scheduled time. 2012-01-29 11:38:22 -08:00
Josiah Carlson
3e2ef51072 Add code, tests, makefile, etc. 2011-07-17 17:34:56 -07:00