yapi/client/common.js

8 lines
179 B
JavaScript
Raw Normal View History

2017-07-18 17:15:29 +08:00
import moment from 'moment'
2017-08-17 20:08:10 +08:00
// 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")
}