mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-27 05:30:14 +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")
|
|
}
|