kiorky / croniter

MIT License
410 stars 40 forks source link

Document precision for croniter.match #58

Open mjgp2 opened 11 months ago

mjgp2 commented 11 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.