Thanks to visit codestin.com
Credit goes to hron.io

Playground GitHub

Human-readable cron

Scheduling expressions that are readable and more powerful than cron.

every weekday at 9:00 except dec 25, jan 1 in America/New_York
Try it

Native implementations for Rust, TypeScript, Python, Go, Dart, Java, C#, Ruby, and WASM.

cron vs hron

cron hron
0 9 * * 1-5 every weekday at 9:00
0 10 * * 0,6 every weekend at 10:00
*/30 * * * * every 30 min from 00:00 to 23:59
0 9 1 * * every month on the 1st at 9:00
not possible every 2 weeks on monday at 9:00
not possible every month on the first monday at 10:00
not possible every year on dec 25 at 00:00

Beyond cron

Multi-week intervals
every 2 weeks on monday at 9:00
Ordinal weekdays
every month on the first monday at 10:00
Yearly schedules
every year on dec 25 at 00:00
Exception dates
every weekday at 9:00 except dec 25, jan 1
End dates
every day at 09:00 until 2026-12-31
Timezone + DST aware
every day at 9:00 in America/New_York

Install

Rust
cargo add hron
TypeScript / JavaScript
npm install hron-ts
Python
pip install hron
Go
go get github.com/prasrvenkat/hron/go
Dart / Flutter
dart pub add hron
Java
io.hron:hron implementation 'io.hron:hron'
C# / .NET
dotnet add package Hron
Ruby
gem install hron
WASM
npm install hron-wasm
CLI
cargo install hron-cli