chronical
v0.1.3
Published
An implementation of RRule as defined in iCalendar (RFC 5545) using Temporal API written in Rust
Maintainers
Readme
chronical
A high-performance implementation of RRule (RFC 5545) using the Temporal API, written in Rust with Node.js bindings.
The name chronical comes from chrono (a Rust crate for handling date and time) and iCalendar (RFC 5545).
Installation
npm install chronicalQuick Start
import { RRuleSet } from "chronical";
import { Temporal } from "temporal-polyfill";
const dtStart = Temporal.ZonedDateTime.from("2025-01-01T00:00:00[UTC]");
const rruleSet = new RRuleSet(dtStart);
// Get all occurrences
const dates = rruleSet.all();
console.log(dates); // [ ZonedDateTime [Temporal.ZonedDateTime] {} ]
console.log(dates[0].toString()); // "2025-01-01T00:00:00+00:00[UTC]"License
MIT
