kiorky / croniter

MIT License
382 stars 37 forks source link

Document precision for croniter.match #58

Open mjgp2 opened 9 months ago

mjgp2 commented 9 months ago

Found out that croniter.match will return true if the input date is less than 60 or 1 seconds from the match (depending if a 5 or 6 length cron).

From the documentation it would seem like match is exact.

I would suggest that the precision can be optionally passed in to the function and the docs updated to make it clear that match takes a precision. Happy to help put a PR together if you agree.