archive #ocps
One cron pattern, five languages: Croner and OCPS
by Hexagon,
Croner started as a small cron library for JavaScript. It then got a Rust version, and recently Python and .NET versions. Now there is a fifth one, for C++. Five libraries that should answer the same question in the same way: when does 0 0 L * FRI run next? That turned out to be the easy part. The hard part was deciding what the right answer is.