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.
- Host: GitHub
- URL: https://github.com/simplymika/deno-thyme
- Owner: SimplyMika
- Created: 2021-07-24T16:59:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-24T17:39:11.000Z (over 4 years ago)
- Last Synced: 2025-10-20T19:53:59.351Z (3 months ago)
- Topics: date, datetime, formattime, time, time-format, time-formatting
- Language: TypeScript
- Homepage: https://deno.land/x/thyme
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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')
```