1.0.4 • Published 3 years ago

node-js-time-formatter v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Node JS Time Formatter

A Time Formatter to format seconds into readable text.

Install

$ npm install node-js-date-formatter

Usage

const format = require('node-js-date-formatter')

let table = {
    "steam:test": {
        "playTime": 60,
        "JoinTime": 0,
        "LeaveTime": 0
    }
}

format(body[`steam:test`].playTime)

Returns:

0 Days, 0 Hours, 1 Minutes, and 0 Seconds
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago