1.0.30 • Published 2 years ago

beautiful.ms v1.0.30

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

beautiful.ms

Easily convert milliseconds to a human-readable date string

Usage

require('beautiful.ms')(duration)

Code example

console.log(require('beautiful.ms')(2792693691263)) // 8 decades, 8 years, 5 months, 4 weeks, 15 hours, 44 minutes and 51 seconds

Change logs

1.0.2 => 1.0.3

1. Fixed the output returning days as months + extra days, hopefully the last bug to be found on this package 

1.0.1 => 1.0.2

1. Made the package return more in-depth results
2. Fixed the problem that made the package return totally invalid results