CRONEXPR(1)

πŸ“¦ version 0.2.45, in ubuntu stonking

πŸ’– NAME πŸ’–

cronexpr β€” bestie, this is the little guy that evaluates cron expressions and prints the next scheduled times, so you never have to sit there doing mental math about when your job is actually gonna fire. πŸ•βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

cronexpr [OPTIONS] "CRON EXPRESSION"

🌸 DESCRIPTION 🌸

Okay so picture this: cronexpr takes a cron expression, parses it, and then tells you the next time (or times, bestie, plural is allowed πŸ’…) that thing would fire. It does this relative to a given reference time β€” and if you don't hand it one, it just uses now. Literally so easy.

Heads up on the quoting!! CRON EXPRESSION must be quoted, or your shell is gonna word-split it into a million little pieces and everything will be chaos. 😭 Don't do that to yourself.

It's got range, too β€” it supports both:

  • 5-field expressions β€” that's minute hour day month weekday
  • 6-field expressions β€” same vibe but with seconds too ⏱️

...aaaand the classic shorthand glow-ups, which are:

  • @yearly
  • @monthly
  • @weekly
  • @daily
  • @hourly

Iconic behavior honestly. πŸ‘‘


✨ OPTIONS ✨

  • -t TIME β€” this is your reference time, the moment the expression gets evaluated against. TIME is a whole or partial RFC 3339 value (like 2006-01-02T15:04:05Z07:00). If you just... don't pass it, it defaults to the current local time. No pressure. 🫢
  • -n COUNT β€” how many next scheduled times you want it to spit out. Default: 1 β€” so if you want the whole future, say so, bestie.
  • -l LAYOUT β€” a Go time layout string used to format each output time. For the reference on how that format even works, go look at the time package constants in the Go standard library. Default: Mon, 02 Jan 2006 15:04:05 MST ✨

πŸ¦‹ OUTPUT πŸ¦‹

  • One time value per line, bestie. One. Per. Line.
  • They come out in chronological ascending order, so no scrambling around trying to sort them yourself.
  • Lines that start with # are comments β€” so if you're only here for the actual time values, you can just ignore them. They're not for you, they're for the vibe. πŸ™ˆ

🌈 EXAMPLES 🌈

Print the next time */15 * * * * will fire:

cronexpr "*/15 * * * *"

Print the next 5 occurrences of a daily job starting from a fixed time:

cronexpr -n 5 -t 2024-01-01 "0 9 * * 1-5"

πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’€ BUGS πŸ’€

Not me asking you to please report bugs at <https://github.com/aptible/supercronic/issues> πŸ› β€” like, fr fr, if something's broken, tell the maintainers, they wanna know.


k that's the whole page bestie, you're a cron girlie now πŸ’…

This was supercronic 0.2.45, dated 2026-05-21 β€” like and subscribe, mwah πŸŽ€πŸ’–

πŸ“¦ where this page comes from