Home

Awesome

reverse-what-time Build Status codecov

reverse human readable time to number

Install

npm install reverse-what-time
yarn add reverse-what-time

Usage

const reverseWhatTime = require('reverse-what-time');

reverseWhatTime('1Y2M1W1d3h6m44s');
// : 1 year 2 mouths 1 week 1 day 3 hours 6 minutes 44 seconds
// 37422404
reverseWhatTime('1Y,2M,1W,1d,3h,6m,44s',',');

API

reverseWhatTime(time, split)

time

name:time
Type:string
Desc:time : human readable
split
name:split
Type:string
Default:``
Desc:split time

contact

use by

License

MIT © chinanf-boy