Commit graph

11 commits

Author SHA1 Message Date
Josiah Carlson
a4a603579a Added LGPL v3 licensing option 2014-06-17 22:58:05 -07:00
Josiah Carlson
86b15138fd Fixes bug with crontab's previous() calculation
* When looking for a previous entry, sometimes the initial pass for the
  previous() method would effectively double-decrement the current time, which
  can cause previous() to skip over the correct previous time if it was within
  1 minute of now (or the time passed as now)
* Bug report thanks to David Siera
2014-06-06 09:42:10 -07:00
Josiah Carlson
1209496ff7 Fixes "next" time is actually the next in some cases
* Also swapped to '0.xx' versioning as per github user mgedmin.
2013-06-19 23:40:57 -07:00
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
Graham Bell
1116146ee0 Allow Sunday to be specified as weekday 7. 2012-08-10 17:25:49 -10:00
Graham Bell
0b534c4423 Minor patch for Python 3 compatibility. 2012-07-30 10:44:10 -10: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
1ec538ff67 Updated license to LGPL 2.1, fixed a small bug. 2011-10-27 00:45:25 -07:00
Josiah Carlson
3e2ef51072 Add code, tests, makefile, etc. 2011-07-17 17:34:56 -07:00