1.0.3 • Published 4 years ago

ydmo v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

ydmo

Travis (.com)

Date parsing for a past or future data with a simple short letter format

Install

$ yarn add ydmo
$ npm install ydmo

Usage (ES6 imports)

import ydmo from 'ydmo';

// returns date 1 year and 3 days in the future
const futureDate = ydmo('+1y3d');

// returns date 1 year and 3 days in the past
const pastData = ydmo('-6mo4h');

Date codes

Year: y

Month: mo or m

Week: w

Day: d

Hour: h

Minute: mi

Second: s

License

MIT © Benjamin Hollway

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago