yapi/client/common.js

5 lines
130 B
JavaScript
Raw Normal View History

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