yapi/client/common.js

6 lines
131 B
JavaScript
Raw Normal View History

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