trtime
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

trtime

treate time. It only has the ability to convert numbers to strings.For now.

install

pnpm i trtime

usage

parseTime(
  333333333333,
  {
    y: '年',
    M: '月',
    w: '週',
    d: '日',
    h: '時間',
    m: '分',
    s: '秒',
  },
  true,
);
/**
 * {
 *   parsedTime: '10年6月4週35分33秒',
 *   remainTime: 333,
 * }
 */

Readme

Keywords

none

Package Sidebar

Install

npm i trtime

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

6.25 kB

Total Files

8

Last publish

Collaborators

  • kosakanoki