reverse-what-time
v0.0.4
Published
reverse human readable time to number
Downloads
3
Readme
reverse-what-time
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
- what-time human readable time
use by
- keep-mac-light keep macos light no down
License
MIT © chinanf-boy