Commit Graph

4 Commits

Author SHA1 Message Date
Ankit Goel 139d5dcd32 Fix bug in implementation of `timeutils.daterange`
Currently, the `finished` function used in case of `stop` being None has a
different signature than the one used in case of `stop` being a date.
This commit remedies that and adds a test for the same.
2018-10-11 00:47:00 -07:00
Mahmoud Hashemi 294344b84f allow daterange to run backwards as well as forwards. greatly enhance daterange's docstring. make stop a required argument (though None will still work). user operator module instead of lambdas for clarity. 2016-05-21 00:26:06 -07:00
Mahmoud Hashemi a0c2c992d9 add month and year support to daterange, address concerns from #75, as well as add some tests and tweak some docstrings 2016-05-20 20:08:20 -07:00
Mahmoud Hashemi 1489864cd2 adding timeutils.total_seconds accuracy tests per #13 2015-08-17 00:31:58 -07:00