yapi/client/common.js

10 lines
202 B
JavaScript
Raw Normal View History

2017-07-18 17:15:29 +08:00
import moment from 'moment'
import regex_parse from './parseCommon.js';
2017-07-18 17:15:29 +08:00
exports.formatTime = (timestamp) => {
2017-07-20 11:32:21 +08:00
return moment.unix(timestamp).format("YYYY-MM-DD HH:mm:ss")
}
2017-08-02 18:32:01 +08:00
console.log(regex_parse)