Skip to content

oeo/seconds-to-human

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seconds-to-human

install

using npm

npm i seconds-to-human --save

example

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
###

About

convert unix seconds to humanized output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published