Skip to content

mmmurray/greenwich

Repository files navigation

Greenwich

TypeScript date and time utility library. Inspired by the proposed Temporal API.

Install

yarn add greenwich

Or

npm i greenwich

Usage

import { timeNow, timeSpanCreate, timeToISOString } from 'greenwich';

const t0 = timeNow();
const t1 = timeAdd(t0, timeSpanCreate({ days: 10 }));

console.log(timeToISOString(t1));

About

TypeScript time and date utility library.

Resources

Stars

Watchers

Forks

Packages

No packages published