Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pskfyi/human-time


https://github.com/pskfyi/human-time

Last synced: 9 days ago
JSON representation

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)