mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-15 05:10:47 +08:00
6 lines
131 B
JavaScript
6 lines
131 B
JavaScript
import moment from 'moment'
|
|
|
|
exports.formatTime = (timestamp) => {
|
|
return moment.unix(timestamp).format("YYYY-MM-DD HH:mm:ss")
|
|
}
|