taichino/croniter — pull request #13 by jimmydo (2012-04-02 20:35:46+00:00)
Title: Fix `get_prev()` when crossing into previous month

Added the test `testPrevDayOfMonthWithCrossing` to document this bug.

The issue relates to this line of `_get_prev_nearest_diff()`:

```
return (candidates[0]) - x - range_val
```

When called from `proc_day_of_month()`, `range_val` should be the number of days
in the prevoius month, not the current month.