Toolbox-XToolbox-X

Quick Start

Get up and running with toolbox-x in minutes.

Creating Instances

There are multiple ways to create a Chronos instance:

Using the Constructor

import { Chronos } from "toolbox-x";

// Current date and time
const now = new Chronos();

// From a date string
const date = new Chronos("2025-12-31");

// From a timestamp
const fromTimestamp = new Chronos(1735689600000);

// From a Date object
const fromDate = new Chronos(new Date());

// From components
const custom = new Chronos(2025, 6, 15, 14, 30, 0);

Basic Operations

playground.ts

Using Plugins

Extend Chronos with plugins for additional functionality:

playground.ts

Important

Register plugins at the top of your application entry point, before creating any Chronos instances.

Last updated: Fri, May 22, 2026 07:46:19AM (Coordinated Universal Time)

On this page