diff options
-rw-r--r-- | src/croniter/croniter.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/croniter/croniter.py b/src/croniter/croniter.py index b24d17e..2a237a9 100644 --- a/src/croniter/croniter.py +++ b/src/croniter/croniter.py @@ -171,12 +171,13 @@ class croniter(object): def _timedelta_to_seconds(cls, td): """ Converts a 'datetime.timedelta' object `td` into seconds contained in - the duration + the duration. + Note: We cannot use `timedelta.total_seconds()` because this is not + supported by Python 2.6. """ return (td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) \ / 10**6 - # iterator protocol, to enable direct use of croniter # objects in a loop, like "for dt in croniter('5 0 * * *'): ..." # or for combining multiple croniters into single |