format seconds as a digital clock string
npm install @makenova/panda
š¼ format seconds as a digital clock string š¼
Panda, š¼, Panda, š¼, Panda
``sh
npm install --save @makenova/panda
npm install -g @makenova/panda
`
`js`
var convert = require('@makenova/panda')
convert(7250) // => '120 : 50'
convert(45012, { hours: true }) // => '12 : 30 : 12'
or in with import
`js`
import convert from '@makenova/panda')
convert(7250) // => '120 : 50'
convert(45012, { hours: true }) // => '12 : 30 : 12'
or if you installed it globally,
`sh
panda 45012 # => 750 : 12
panda 45012 true # => 12 : 30 : 12
Usage
$ panda
Examples
$ panda 45012
750 : 12
$ panda 45012 true
12 : 30 : 12
`
Convert seconds to a string formatted as a digital clock string. The default is
Minutes : seconds`.
###### options.hours
A boolean that indicates if hours should be displayed.
Please report any bugs to: https://github.com/makenova/panda/issues
Licensed under the MIT License: https://opensource.org/licenses/MIT