An open API service indexing awesome lists of open source software.

https://github.com/simplymika/deno-thyme

Time library for Deno with formatting support.
https://github.com/simplymika/deno-thyme

date datetime formattime time time-format time-formatting

Last synced: about 2 months ago
JSON representation

Time library for Deno with formatting support.

Awesome Lists containing this project

README

          

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

## Usage
```ts
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:
```ts
Thyme.parseECMA('1969-07-20T20:17:40')
```