CronExpressionDescriptor 3.7.0

dotnet add package CronExpressionDescriptor --version 3.7.0
                    
NuGet\Install-Package CronExpressionDescriptor -Version 3.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CronExpressionDescriptor" Version="3.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CronExpressionDescriptor" Version="3.7.0" />
                    
Directory.Packages.props
<PackageReference Include="CronExpressionDescriptor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CronExpressionDescriptor --version 3.7.0
                    
#r "nuget: CronExpressionDescriptor, 3.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CronExpressionDescriptor@3.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CronExpressionDescriptor&version=3.7.0
                    
Install as a Cake Addin
#tool nuget:?package=CronExpressionDescriptor&version=3.7.0
                    
Install as a Cake Tool

Cron Expression Descriptor

Build NuGet NuGet downloads .NET 10 | .NET Standard 2.0 License: MIT

<img align="left" src="/p/https://user-images.githubusercontent.com/759811/210273710-b13913e2-0a71-4d9d-94da-1fe538b8a73e.gif"/>

<br/>

 Would you take a quick second and ⭐️ my repo?

<br/>

A .NET library that converts cron expressions into human readable descriptions.

ExpressionDescriptor.GetDescription("0 23 ? * MON-FRI");
// "At 11:00 PM, Monday through Friday"

Try it live →

Contents

Features

  • Supports all cron expression special characters including * / , - ? L W #
  • Supports 5, 6 (with seconds or year), or 7 (with seconds and year) part cron expressions
  • 30 languages
  • Supports Quartz.NET cron expressions
  • 12 or 24-hour time

Installation

dotnet add package CronExpressionDescriptor

See the NuGet package and release notes.

Quick Start

using CronExpressionDescriptor;

ExpressionDescriptor.GetDescription("*/5 15 * * MON-FRI");
// "Every 5 minutes, between 03:00 PM and 03:59 PM, Monday through Friday"

Options

Pass an Options object to GetDescription:

Option Type Default Description
ThrowExceptionOnParseError bool true Throw when the expression can't be described, or return the error message as the description
Verbose bool false Keep parts like ", every minute" that only restate the default
DayOfWeekStartIndexZero bool true Whether day of week 0 is Sunday (true) or 1 is Sunday (false)
Use24HourTimeFormat bool? null Use a 24-hour clock; when null, the locale decides
Locale string null The language to describe the expression in; when null, CurrentUICulture is used
ExpressionDescriptor.GetDescription("0-10 11 * * *", new Options
{
    DayOfWeekStartIndexZero = false,
    Use24HourTimeFormat = true,
    Locale = "fr"
});
// "Toutes les minutes entre 11:00 et 11:10"

Languages

Pass a Locale to describe an expression in another language:

ExpressionDescriptor.GetDescription("0-10 11 * * *", new Options { Locale = "de" });
// "Jede Minute zwischen 11:00 und 11:10"
Language Locale Contributor
English en Brady Holt
Chinese (Simplified) zh-Hans (zh-CN) Star Peng
Chinese (Traditional) zh-Hant (zh-TW) Ricky Chiang
Czech cs Jirka
Danish da Rasmus Melchior Jacobsen
Dutch nl TotalMace
Finnish fi Mikael Rosenberg
French fr Arnaud TAMAILLON
German de Michael Schuler
Greek el hardra1n
Hebrew he-IL Ariel Deil
Hungarian hu Varga Miklós
Italian it rinaldihno
Japanese ja Alin Sarivan
Kazakh kk hardra1n
Korean ko Ion Mincu
Kyrgyz ky Only Human
Norwegian nb Siarhei Khalipski
Persian (Farsi) fa A. Bahrami
Polish pl foka
Portuguese (Brazil) pt Renato Lima
Romanian ro Illegitimis
Russian ru LbISS
Slovenian sl Jani Bevk
Spanish es Ivan Santos
Spanish (Mexico) es-MX Ion Mincu
Swedish sv roobin
Turkish tr Mustafa SADEDİL
Ukrainian uk Taras
Vietnamese vi Nguyen Duc Son

Want to add a language? See CONTRIBUTING.md.

CurrentUICulture

When no Locale is passed, Thread.CurrentUICulture decides the language:

Thread.CurrentThread.CurrentUICulture = new CultureInfo("it-IT");
ExpressionDescriptor.GetDescription("* * * * *");
// "Ogni minuto"

Reducing build output size

To leave out languages you don't need, set the SatelliteResourceLanguages property in your project.

Examples

Expression Description
* * * * * Every minute
*/5 * * * * Every 5 minutes
0 * * * * Every hour
30 11 * * * At 11:30 AM
30 11 * * 1-5 At 11:30 AM, Monday through Friday
0 23 ? * MON-FRI At 11:00 PM, Monday through Friday
0-10 11 * * * Every minute between 11:00 AM and 11:10 AM
30 6,14,16 * * * At 06:30 AM, 02:30 PM and 04:30 PM
*/5 15 * * MON-FRI Every 5 minutes, between 03:00 PM and 03:59 PM, Monday through Friday
23 12 15 * * At 12:23 PM, on day 15 of the month
* * * 3,6 * Every minute, only in March and June
23 12 * JAN-MAR * At 12:23 PM, January through March
* * * * MON#3 Every minute, on the third Monday of the month
* * * * 4L Every minute, on the last Thursday of the month
*/5 * L JAN * Every 5 minutes, on the last day of the month, only in January
* * * * * * Every second
*/45 * * * * * Every 45 seconds
30 02 14 * * * At 02:02:30 PM
5-10 30-35 10-12 * * * Seconds 5 through 10 past the minute, minutes 30 through 35 past the hour, between 10:00 AM and 12:59 PM
0 30 10-13 ? * WED,FRI At 30 minutes past the hour, between 10:00 AM and 01:59 PM, only on Wednesday and Friday
2-59/3 1,9,22 11-26 1-6 ? Every 3 minutes, minutes 2 through 59 past the hour, at 01:00 AM, 09:00 AM, and 10:00 PM, between day 11 and 26 of the month, January through June
* * * * * 2013,2014 Every minute, only in 2013 and 2014
23 12 * JAN-FEB * 2013-2014 At 12:23 PM, January through February, 2013 through 2014

.NET Platform Support

The NuGet package targets .NET Standard 2.0 and .NET 10.0, so it runs on:

Older platforms

You need Use version
.NET Standard 1.x (e.g. .NET Core 1.x, .NET Framework 4.5) 2.52.0
.NET Framework 3.5 or 4.0 1.21.2
A strong-named assembly 1.21.2
dotnet add package CronExpressionDescriptor --version 1.21.2

Ports

This library has been ported to several other languages:

Language Project
JavaScript bradymholt/cRonstrue
Java RedHogs/cron-parser
Java voidburn/cron-expression-descriptor
Ruby alpinweis/cronex
Python Salamek/cron-descriptor
PHP panlatent/cron-expression-descriptor
Go lnquy/cron
Rust cflockhart/cron-descriptor-rust
Swift gooop/cron-descriptor-swift

FAQ

The cron expression I'm passing in is not valid and the output is strange. What should I do?

This library does not fully validate cron expressions and assumes the expression is valid. To validate one, use a library like Cronos.

Can this library show the next scheduled date?

No. Cronos can.

License

MIT © Brady Holt

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • net10.0

    • No dependencies.

NuGet packages (54)

Showing the top 5 NuGet packages that depend on CronExpressionDescriptor:

Package Downloads
Hangfire.Dashboard.Management

Hangfire.Dashboard.Management provides a Management page in the default dashboard. It allows for manually creating jobs.

AMS-Utl

Package Description

DotNetWorkQueue

Work queue for dot net 8.0 and 10.0, and for .NET Framework and other netstandard2.0 runtimes. Supports scheduling, delayed processing, prioritized queues, message expiration, retries with configurable back-off and more.

BlueBox.Core

Core Framework

Aurora.Workflows

Aurora Workflows core engine: visual workflow automation for .NET with Roslyn-powered C# expressions, explicit task inputs/outputs, triggers and headless execution of .awf workflows. Designer-independent and embeddable in any .NET application.

GitHub repositories (15)

Showing the top 15 popular GitHub repositories that depend on CronExpressionDescriptor:

Repository Stars
HangfireIO/Hangfire
An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
RayWangQvQ/BiliBiliToolPro
B 站(bilibili)自动任务工具,支持docker、青龙、k8s等多种部署方式。全面拥抱AI。敏感肌也能用。
smartstore/SmartStoreNET
Open Source ASP.NET MVC Enterprise eCommerce Shopping Cart Solution
smartstore/Smartstore
A modular, scalable and ultra-fast open-source all-in-one eCommerce platform built on ASP.NET Core 10
simpleidserver/SimpleIdServer
OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
nsnail/NetAdmin
通用后台权限管理系统、快速开发框架(基于C#13/.NET9、Vue3/Vite、ElementPlus等现代技术构建,具有十分整洁、优雅的编码规范)Universal backend permission management system, rapid development framework (based on modern technologies such as C#13/.NET9, Vue3/Vite, ElementPlus, etc., with very neat and elegant coding standards)
trimble-oss/dba-dash
DBA Dash - SQL Server Monitoring Tool
Corsinvest/cv4pve-admin
Web management platform for Proxmox VE clusters: like vCenter but for Proxmox
hupo376787/WeiboAlbumDownloader
微博相册下载工具C#版,批量采集指定微博账号下的所有图片/视频/LivePhoto。
tomkerkhove/promitor
Bringing Azure Monitor metrics where you need them.
yuzd/Hangfire.Core.Extend
在1.6.5基础上给dashbord增加了搜索功能,增加在dashbord上手动添加job,提供对外SDK添加job
mausch/QuartzNetWebConsole
Embeddable Quartz.Net web console
blehnen/DotNetWorkQueue
A work queue for dot.net with SQL server, SQLite, LiteDB, Redis and PostGreSQL backends
wilchn/BlazingQuartz
Blazor web UI to manage Quartz.NET scheduler jobs.
DevToys-app/DevToys.Tools
Default tools shipped with DevToys
Version Downloads Last Updated
3.7.0 82 2026/11/30
3.6.0 285 2026/11/30
3.5.0 3,696 2026/11/25
3.4.0 2,528 2026/11/24
3.3.0 183 2026/11/24
3.2.0 2,055 2026/11/23
3.1.0 6,338 2026/11/19
3.0.0 536 2026/11/19
2.53.0 4,423 2026/11/19
2.52.0 1,694 2026/11/18
2.51.0 1,025,123 2026/7/7
2.50.0 205,283 2026/6/8
2.49.0 1,567 2026/6/8
2.48.0 78,842 2026/5/28
2.47.0 771 2026/5/28
2.46.0 763 2026/5/28
2.45.0 781,557 2026/2/25
2.44.0 1,459,071 2025/7/3
2.43.0 3,568 2025/7/3
2.42.0 4,600 2025/7/3
Loading failed