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

1.5.2 • Public • Published

所有帮助方法的集合

时间方法(helperFormat)

引用

import { getStandardTimer, formatter } from 'handsome-helpers';

调用
getStandardTimer
param {Date} date: 时间函数构造实例化
return {Object}

example getStandardTimer(new Date)

formatter
param {number} timestamp: 时间戳
param {string} formatAdapter: yyyy-MM-dd HH:mm:ss | yyyy-MM-dd | yyyy-MM-dd HH
第二个参数默认yyyy-MM-dd

example formatter(1543889636704, 'yyyy-MM-dd')

Readme

Keywords

Package Sidebar

Install

npm i handsome-helpers

Weekly Downloads

1

Version

1.5.2

License

ISC

Unpacked Size

23.1 kB

Total Files

25

Last publish

Collaborators

  • wukangjun