/** * 日期格式化 * @param {String} str 日期格式 * @param {Number} timestamp 时间戳 * @author webopenfather * @return String */ module.exports = (str, timestamp) => { let d = new Date(); if (timestamp) d.setTime(timestamp);
published 1.0.1 2 years ago- published 1.0.0 2 years ago