Skip to content

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

License

Notifications You must be signed in to change notification settings

akameco/pretty-ms-ja

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published