JavaScript 函数库、工具类
7+ ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 6+ ✔ |
npm install di-shan-utils
Using nodejs
const DIUtils = require('di-shan-utils')
import DIUtils from 'di-shan-utils'
DIUtils.toDateString(Date.now())
// 2018-01-01 10:30:28
DIUtils.toStringDate('2018-01-01 10:30:00')
// Mon Jan 01 2018 10:30:00 GMT+0800 (中国标准时间)