@azlib/temporal
v0.2.0
Published
Date and time helpers built around the Temporal API with an `@js-temporal/polyfill` fallback.
Readme
Temporal
Date and time helpers built around the Temporal API with an @js-temporal/polyfill fallback.
import { formatTimestamp, temporal } from "@azlib/temporal";
const value = temporal("2026-05-29T10:00:00Z", { timeZone: "UTC" });
value.add(1, "day").format("YYYY-MM-DD");
formatTimestamp(value.toISOString(), "en-US");The API intentionally mirrors the subset of Day.js-style helpers used by shared UI and product code while returning immutable values.
