js-pub-npm-timeutil
v1.0.3
Published
时间格式化工具
Downloads
1
Readme
1.安装
npm install js-pub-npm-timeutil
2.引用
var timeUtil = require('js-pub-npm-timeutil')
// 参数一:是number类型的时间戳
console.log(formatDate(new Date().getTime(), 'yyyy/MM/dd'))
console.log(timeUtil.formatDate(null, 'yyyy/MM/dd'))
console.log(timeUtil.formatDate())