Kairos 1.0 — a schedule language where "3 business days before month-end" is an expression
Today I tagged 1.0 of Kairos , a schedule definition language I've been building — a small DSL where schedules like "3 business days before month-end" or "payday on the 25th, previous business day if it's a holiday" are single expressions. premise US { calendar-system: Gregorian; calendar: NYSE; tz: "America/New_York"; wkst: Sun } @US monthEnd |> roll(Preceding, on: bizDay) |> shift(-3, unit:…
Kairos 1.0 is a schedule definition language that allows users to define schedules using single expressions, such as "3 business days before month-end" or "payday on the 25th, previous business day if it's a holiday". It addresses the limitations of existing tools like cron, Quartz, RRULE, Temporal, date-fns, and dateutil, which do not compose expressions well or do not account for holidays and other special cases.
Kairos is built around the principle of closure, where every expression maps a time stream to a time stream, allowing derived streams to feed further definitions. The language is frozen at version 1.0, with a focus on being a prototype with zero runtime dependencies and a comprehensive test suite. The documentation is available in both Japanese and English.
Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.