mariusbancila / croncpp

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

cron_next with time_t parameter produces next time which equals produced time. #33

Open CasysWooks opened 1 year ago

CasysWooks commented 1 year ago

With the cronexpr string as shown below.

CronExpr String: */15 * * * * *

I tried to calculate the Next Cron Time from Timestamp below.

DateTime: 2023-04-06 16:24:15.001

The result confirmed that the same time came out as below

NextTime: 2023-04-06T16:24:15

Is this result a bug?