A .NET library for parsing, formatting, and calculating occurrences from crontab expressions.
NCrontab is a .NET library that parses, formats, and calculates time occurrences from crontab expressions. It allows developers to integrate cron-like scheduling logic into their .NET applications without needing a full cron daemon or scheduler service. The library handles both standard five-part expressions and extended six-part formats that include seconds.
.NET developers who need to implement time-based scheduling, recurring tasks, or cron expression handling within their applications, such as in background job processors or task runners.
Developers choose NCrontab for its focused, lightweight approach to crontab expression handling, its reliability in calculating occurrences, and its ability to merge multiple schedules—all without the overhead of a full scheduler.
Crontab for .NET
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports both standard five-part and extended six-part (with seconds) crontab expressions, as demonstrated in the README with examples like '0 12 * * Mon' for precise time handling.
Generates occurrences between any start and end dates and merges multiple schedules into a distinct timeline, shown in the merging example with weekday and weekend schedules.
Provides core crontab functionality without scheduler overhead, making it easy to add via NuGet and integrate into .NET projects, as emphasized in its philosophy.
The library explicitly states it does not include a scheduler, so developers must implement task execution logic separately, adding complexity for full scheduling solutions.
GetNextOccurrence uses an exclusive start time, which can be confusing and requires careful handling in loops, as noted in the README, potentially leading to off-by-one errors.
Cannot handle scheduling rules beyond cron expressions, such as complex dependencies or custom time-based triggers, restricting its use in advanced or non-standard scenarios.