Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pskfyi/human-time
https://github.com/pskfyi/human-time
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pskfyi/human-time
- Owner: pskfyi
- Created: 2022-11-27T08:10:18.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-22T10:21:00.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T03:46:25.769Z (9 days ago)
- Language: TypeScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Human Time
Simplified time-related types, data structures, and functions for Deno.
This package may be replaced by Temporal APIs and new Intl APIs when they become
available in all environments.## Example
From [`example.ts`](./example.ts):
```ts
import { Day, Duration } from "https://deno.land/x/[email protected]/mod.ts";console.log(`Today is ${new Day()}`);
console.log(
new Duration({ days: 7 })
.toString({ units: ["weeks"] }), // "1w"
);
```## Modules
- [Day](./Day/readme.md)
- [Duration](./Duration/readme.md)## Local Development
```sh
git clone [email protected]:pskfyi/human-time.git
cd human-time
```With Deno installed:
```sh
deno run example.ts
deno test . # unit testing
deno lint # linting
deno fmt # formatting
```## About
- [Design](./docs/design.md)
- [Organization](./docs/organization.md)