Minimal immutable date class that supports relative time, calendar time, and plus/minus of different units.
Why use Daet over say?
- is written in typescript, so you get great intellisense
- is immutable, so no funy business
- is absolutely tiny in size
- yet it has the most intuitive, rich, and efficient relative date interface out there
npm install --save daet
import pkg from ('daet')
const pkg = require('daet').default
<script type="module"> import pkg from '//cdn.skypack.dev/daet@^3.23.0' </script>
<script type="module"> import pkg from '//unpkg.com/daet@^3.23.0' </script>
<script type="module"> import pkg from '//email@example.com' </script>
This package is published with the following editions:
daet/source/index.tsis TypeScript source code with Import for modules
daet/edition-browsers/index.jsis TypeScript compiled against ES2020 for web browsers with Import for modules
daet/edition-es2019/index.jsis TypeScript compiled against ES2019 for Node.js 10 || 12 || 14 || 16 with Require for modules
daet/edition-es2019-esm/index.jsis TypeScript compiled against ES2019 for Node.js 12 || 14 || 16 with Import for modules
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Unless stated otherwise all works are:
- Copyright © 2019+ Benjamin Lupton
and licensed under: