Closed mayghalV closed 2 years ago
That's not how croniter was supposed to be used, but i just added something that will let you to do it.
IOW, you can do both the two ways (old and new) to achieve the same thing:
before the 1.3.0 i just released, you could do only this way
nextnow2 = croniter('* * * * * ', now).next(datetime)
from 1.3.0
# note that it will work without the `start_time` kwarg
# but you really should add this extra kwarg to ensure compat in case of an API change
nextnow = croniter('* * * * * ').next(datetime, start_time=now)
Hi thank you for your work on this.
I noticed that calling .next in the way below seems to lose the timezone information after v0.3.35 It also seems to go backwards instead of forward
Any idea why this could be?
v0.3.34
v0.3.35 / v1.2.0