mariusbancila / croncpp

A C++11/14/17 header-only cross-platform library for handling CRON expressions
MIT License
236 stars 68 forks source link

Behavior on "imaginary dates" #7

Open PhilDakinOcient opened 5 years ago

PhilDakinOcient commented 5 years ago

The cron string "0 0 5 31 2 ?" (February 31st) returns large negative numbers as wait times, but should throw an exception. In general, imaginary dates should cause an error- there is no next occurrence of the cron string. However, this is easily handled on the user side.