Commit graph

12 commits

Author SHA1 Message Date
Josiah Carlson
112109d017 Should now be usable with all timezone libs
* Fixed unittest runner to return nonzero status on failure
2016-03-21 21:19:49 -07:00
Josiah Carlson
fd7a7192f9 Fixes/adds timezone support to "just work"
Explicitly starts testing against Python 2.6, 2.7, 3.3, 3.4, and 3.5
2016-03-19 22:19:58 -07:00
Josiah Carlson
b7c2b5b975 Fixes items like "last friday of the month"
* Bug report thanks to Tom Bech via email
2016-02-11 22:40:32 -08:00
Josiah Carlson
df297e2f21 Fixes endpoint checking during CronTab creation
* Fixes bug #16
2016-01-29 22:28:58 -08:00
Jonathan Kamens
858fda7ec9 BUG: Allow "-sun" to be specified as the RHS of a weekday range
It should be possible to specify Sunday, i.e., "sun", on the
right-hand side of a weekday range. In other words, "sat-sun" should
work.
2015-11-05 21:29:25 -05: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
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