Skip to content

Date & Time Utils

Terminal window
pnpm add @theholocron/date-time-utils
import { getTimeOfDay } from "@theholocron/date-time-utils";
getTimeOfDay(); // e.g. "morning"
getTimeOfDay(new Date("2024-01-01T20:00:00")); // "evening"

The full API reference is generated from the package’s TSDoc comments.