0.1.0 • Published 8 years ago

pretty-ms-ja v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

pretty-ms-ja Build Status

convert ms to human readable string for Japanese: 1337000000 => 15日11時間23分20秒

Install

$ npm install --save pretty-ms-ja

Usage

const prettyMsJa = require('pretty-ms-ja');

prettyMsJa(1337000000);
//=> '15日11時間23分20秒'

API

prettyMsJa(milliseconds, options)

milliseconds

Type: number

Milliseconds to humanize for Japanese.

options

split

Type: String Default: ''

prettyMsJa(67000);
// => 1時間7分

prettyMsJa(67000, {split: ' '});
// => 1時間 7分

License

MIT © akameco