Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 477 Bytes

readme.md

File metadata and controls

16 lines (13 loc) · 477 Bytes

Thyme

A Time (and Date) library for Deno with formatting support.

Usage

import {Thyme} from 'https://deno.land/x/thyme/mod.ts';

const apollo11Landing = new Thyme(Date.UTC(1969, 6, 20, 20, 17, 40));

console.log(apollo11Landing.formatSimple('YYYY-MM-DD_hh:mm:ss.iii'));
// Outputs '1969-07-20_20:17:40.000'

Note that the initialization syntax is not final, eventually you will be able to construct it like this:

Thyme.parseECMA('1969-07-20T20:17:40')