Time and date utils library
npm install @amaui/date
Time and date utils library
Very simple code
Modern code
Junior friendly
Typescript
Made with :yellow_heart:
#### Sizes
AmauiDate 2.4kb gzipped
AmauiDate with all the methods 5.6kb gzipped
AmauiDate with all the methods and all the timezones 22kb gzipped
``sh`
yarn add @amaui/date
`javascript
import { AmauiDate, format } from '@amaui/date';
// Make a new AmauiDate instance
// with an optional initial value
const amauiDate = new AmauiDate('2014-04-14T14:04:14.147');
// Value
amauiDate.value;
// a Date instance, Mon Apr 14 2014 14:04:14 GMT+0200 (Central European Summer Time)
// Format
// with various ways to add regular text and variables
format(amauiDate, MM-DD-YYYY '🙂' HH:mm:ss.SSS);
// '04-14-2014 🙂 14:04:14.147'
`
Install
`sh`
yarn
Test
`sh`
yarn test
Build
`sh``
yarn build