How to use
- Type an
OnCalendar=value or pick an example. The tool shows systemd's normalized form and the next 10 elapse times. - Fill in the unit name and command to get matching
.timerand.servicefiles. - Coming from cron? Paste the crontab schedule into the converter and press “Use this”.
OnCalendar syntax
A calendar event has four parts in this order — weekdays, year-month-day, hour:minute:second and a timezone — and every part is optional. A missing date means *-*-*, a missing time means 00:00:00 and missing seconds mean :00. All parts must match at the same time.
| Syntax | Meaning | Example |
|---|---|---|
* | Any value | *-*-* 12:00 every day at noon |
a,b | List | Mon,Wed,Fri 07:30 |
a..b | Range | *-*-* 9..17:00 every hour 09–17 |
a/n | Repeat every n from a | *:0/15 every 15 minutes |
~ | Days from the month's end | *-*~01 the last day |
| zone | Evaluate in an IANA zone | daily Europe/Berlin |
Shorthands: minutely, hourly, daily, weekly (Monday 00:00), monthly, quarterly, semiannually, yearly / annually. A repetition must start from a number: */2 is rejected — write 0/2.
Cron to OnCalendar examples
| Schedule | cron | OnCalendar |
|---|---|---|
| Every 15 minutes | */15 * * * * | *:0/15 |
| Weekdays at 09:00 | 0 9 * * 1-5 | Mon..Fri 09:00 |
| First of the month | 0 0 1 * * | monthly |
| Last day of the month | not possible | *-*~01 |
| 1st OR Monday | 0 0 1 * 1 | two lines: *-*-01 and Mon *-*-* |
Gotchas this tool checks for
Every part must match at the same time
A calendar event is a conjunction: the weekday, date and time parts must all match at the same elapse. Mon..Fri *-*-15 09:00 elapses on 15 April 2026 (a Wednesday) but not on 15 August 2026 (a Saturday).
Mon..Fri *-*-15 09:00the 15th, only on weekdays~ counts from the month's end
The ~ window counts back from the month's end: *-*~07/1 covers the last 7 days — 25 to 31 in March 2026. Add a weekday and only a matching day inside the window elapses: Mon *-*~07/1 fires on 30 March 2026, the last Monday of the month.
Mon *-*~07/1last 7 days of the month · March 2026~ window counts back from the month's end: ~07/1 covers the last 7 days (25–31 in March 2026), walked from the 31st backwards. Mon picks the only Monday inside — 30 March, the last Monday of the month.Daylight saving time
A timer whose time does not exist when clocks spring forward does not elapse that day. A time that happens twice when clocks fall back elapses once, at the first occurrence — different from cron, which runs it twice. Pick your time zone above and the warnings name the dates.
How the results are verified
The normalized form and every elapse time are checked against systemd-analyze calendar from systemd 262 on 63 expressions and 210 time-zone and start-time combinations, including invalid input and the 2026 daylight-saving changes.