Commit Graph

142 Commits

Author SHA1 Message Date
Mathieu Le Marec - Pasquet 2526c15d0e Update README.rst 2016-08-15 22:51:11 +02:00
Mathieu Le Marec - Pasquet afa938fff4 Merge pull request #15 from kiorky/revert-14-revert-13-master
Revert "Revert "merge from taichino""
2016-08-15 22:21:14 +02:00
Mathieu Le Marec - Pasquet 3284e2146a Revert "Revert "merge from taichino"" 2016-08-15 22:21:08 +02:00
Mathieu Le Marec - Pasquet 3827e2ab30 Merge pull request #14 from kiorky/revert-13-master
Revert "merge from taichino"
2016-08-15 22:20:00 +02:00
Mathieu Le Marec - Pasquet 0ada22d6f0 Revert "merge from taichino" 2016-08-15 22:19:54 +02:00
Mathieu Le Marec - Pasquet 635149373b Merge pull request #8 from wiggin15/patch-1
Update setup.py classifiers
2016-08-15 22:19:37 +02:00
Mathieu Le Marec - Pasquet 500282ea57 Merge pull request #13 from taichino/master
merge from taichino
2016-08-15 22:19:22 +02:00
Mathieu Le Marec - Pasquet 0e08b40d95 Merge pull request #65 from int3rlop3r/master
Better handling of invalid expressions
2016-08-15 22:17:53 +02:00
Mathieu Le Marec - Pasquet 102700d569 Merge pull request #64 from int3rlop3r/patch-1
Changed shebang
2016-08-15 22:16:17 +02:00
Jonathan 8bc6346434 Better handling of invalid expressions
Expressions such as negative values and invalid characters
used to throw a KeyError with a not so helpful error
message. In this change invalid expressions will throw a
ValueError with a more helpful error message.
2016-08-07 18:33:28 +05:30
Jonathan Fernandes bfaa0394ff Changed shebang
Changed shebang to use the right python version.
2016-08-07 11:27:51 +05:30
Mathieu Le Marec - Pasquet 65ebe6d0f4 Merge pull request #12 from taichino/master
merge
2016-08-02 12:00:09 +02:00
Mathieu Le Marec - Pasquet 56f8ebed46 Merge pull request #61 from josegonzalez/issue-34
Fix error message when not able to find a previous date
2016-08-02 11:51:46 +02:00
Jose Diaz-Gonzalez aa869c84c5 Add testcase to prove that issue 34 is still not parseable 2016-07-27 03:48:23 -04:00
Jose Diaz-Gonzalez e2f7c46974 Fix error message when not able to find a previous date
Refs #34
2016-07-27 03:46:17 -04:00
Mathieu Le Marec - Pasquet 194d6f2e15 Merge pull request #56 from kiorky/master
backport
2016-03-10 21:31:55 +01:00
Mathieu Le Marec - Pasquet 6022c3adf2 Back to development: 0.3.13 2016-03-10 21:31:32 +01:00
Mathieu Le Marec - Pasquet 126dcfc86c Preparing release 0.3.12 2016-03-10 21:31:19 +01:00
Mathieu Le Marec - Pasquet c46c41a7f7 changelog 2016-03-10 21:31:10 +01:00
Mathieu Le Marec - Pasquet 7d84d926f5 Merge pull request #11 from btubbs/master
support setting ret_type in __init__
2016-03-10 21:29:22 +01:00
Brent Tubbs 3d42f3d351 support setting ret_type in __init__ 2016-02-24 13:48:32 -07:00
Mathieu Le Marec - Pasquet 13bde87e71 Merge pull request #51 from kiorky/master
backport
2016-01-13 10:21:19 +01:00
Mathieu Le Marec - Pasquet 5f7109f31e Back to development: 0.3.12 2016-01-13 10:19:36 +01:00
Mathieu Le Marec - Pasquet 2cd5d2a392 Preparing release 0.3.11 2016-01-13 10:19:15 +01:00
Mathieu Le Marec - Pasquet dfb750f335 changelog 2016-01-13 10:18:57 +01:00
iddo d611e66093 Bug fix: The get_prev API crashed when last day of month token was used. Some essential logic was missing. 2016-01-12 21:47:41 +02:00
wiggin15 5dae109460 Update setup.py classifiers
The changelog suggests croniter supports Python 3.
The classifiers are used by PyPI to recognize Python 3 compatible packages (also by caniusepython3.com and developers).
2016-01-11 17:03:40 +02:00
Mathieu Le Marec - Pasquet b1d772dc36 Merge pull request #50 from kiorky/master
https://pypi.python.org/pypi/croniter/0.3.10
2015-11-29 15:02:41 +01:00
Mathieu Le Marec - Pasquet 7cfd1818c1 Back to development: 0.3.11 2015-11-29 15:02:04 +01:00
Mathieu Le Marec - Pasquet 845abbbef3 Preparing release 0.3.10 2015-11-29 15:01:22 +01:00
Mathieu Le Marec - Pasquet 1fcc7ffd9a changelog 2015-11-29 15:00:29 +01:00
iddo d896ef747f The fuctionality of 'l' as day of month was brokne, since the month variable was not properly updated 2015-11-23 17:07:43 +02:00
Mathieu Le Marec - Pasquet 1250656c3a Back to development: 0.3.10 2015-11-19 10:41:36 +01:00
Mathieu Le Marec - Pasquet 5b25afb9a4 Preparing release 0.3.9 2015-11-19 10:41:04 +01:00
Mathieu Le Marec - Pasquet 1ff43165cf changelog 2015-11-19 10:41:00 +01:00
Mathieu Le Marec - Pasquet 5460b84839 Merge pull request #45 from petervtzand/support-datetime-python-2-6
Don't use datetime functions python 2.6 doesn't support
2015-11-19 10:26:47 +01:00
Peter van 't Zand fcc7902ab4 added python 2.6 comment so it won't be deleted 2015-11-19 10:03:49 +01:00
Mathieu Le Marec - Pasquet fce6ade33c Merge pull request #46 from kiorky/master
Stable
2015-08-24 13:15:25 +02:00
Mathieu Le Marec - Pasquet 9eec6d93c1 Merge pull request #5 from Roderick-Jonsson/patch-1
Update README.rst
2015-08-24 13:15:11 +02:00
Roderick-Jonsson ab572ae427 Update README.rst 2015-08-22 12:54:09 +02:00
Peter van 't Zand f7ba4bc74d the function should be a class method instead of instance method because it doesn't perform an action on the instance 2015-07-15 14:06:03 +02:00
Peter van 't Zand c0d478f14c created timedelta to seconds function because python2.6-datetime doesn't support .total_seconds() 2015-07-15 13:19:47 +02:00
Mathieu Le Marec - Pasquet ad29e04e3e changelog 2015-06-23 21:39:36 +02:00
Mathieu Le Marec - Pasquet edab91c7b6 Back to development: 0.3.9 2015-06-23 21:35:17 +02:00
Mathieu Le Marec - Pasquet 4b11aa35e8 Preparing release 0.3.8 2015-06-23 21:35:03 +02:00
Mathieu Le Marec - Pasquet 5ba3b3b1b4 changelog 2015-06-23 21:34:32 +02:00
Mathieu Le Marec - Pasquet 15d05e0637 Merge pull request #4 from coreywright/truncate_milliseconds
Truncate microseconds by setting to 0
2015-06-23 21:32:00 +02:00
Corey Wright acb498ed58 Truncate microseconds by setting to 0
To maintain backwards compatible behavior and comparability of time
values returned by croniter, truncate microseconds from return value
of get_(prev|next) by setting it to 0.

Commit f7e14967 replaced `mktime(dst.timetuple())`, which truncates
microseconds as timetuple() omits microseconds, with
`self._datetime_to_timestamp(dst)` which maintains microseconds.  This
commit sets microseconds to 0, effectively truncating microseconds as
was done previously.

Always setting microseconds to 0 is inline with the maintained
behavior of settings seconds to 0 when the cron format omits seconds
(ie 5 column cron format) as the cron format always omits
microseconds.

Currently time values returned by croniter are not easily compared
when the start time differs, if only in microseconds, because the
start time's microseconds are maintained in the output of
get_(prev|next).  The start time commonly differs when the time value
is communicated between application executions (eg in a database) or
between different applications (eg over the network).  So restoring
the previous behavior not only restores backwards compatibility, but
also restores the ability to compare croniter time values.
2015-06-13 01:11:52 -05:00
Mathieu Le Marec - Pasquet 080436e493 Back to development: 0.3.8 2015-06-01 09:38:08 +02:00
Mathieu Le Marec - Pasquet 36e1fcf83e Preparing release 0.3.7 2015-06-01 09:37:48 +02:00