seconds-to-human
Version:
simple seconds to humanized format
32 lines (22 loc) • 371 B
Markdown
# seconds-to-human
# install
using [npm](https://npmjs.org)
```
npm i seconds-to-human --save
```
# example
``` coffeescript
to_human = require 'seconds-to-human'
console.log to_human 3838
console.log to_human '3600'
console.log to_human 12
console.log to_human 1200
console.log to_human 3600*24*100
###
1.1 hours
1 hour
12 seconds
20 minutes
3.3 months
###
```