Skip to content

Micha-ohne-el/deno-thyme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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')