chrono-kit

v2.8.1 • by TimeKeepers Inc.

A comprehensive library for parsing, validating, manipulating, and formatting dates in Swalang.

Installation

$ swalang install chrono-kit

Documentation

Chrono Kit

Your one-stop solution for all things date and time in Swalang.

Usage

import chrono from 'chrono-kit';

// Get the current date formatted
let today = chrono().format('YYYY-MM-DD');

// Add 7 days to today
let nextWeek = chrono().add(7, 'days');