mirror of
https://github.com/YMFE/yapi.git
synced 2025-02-05 13:29:43 +08:00
5 lines
130 B
JavaScript
5 lines
130 B
JavaScript
import moment from 'moment'
|
|
|
|
exports.formatTime = (timestamp) => {
|
|
return moment.unix(timestamp).format("YYYY-MM-DD:HH:mm:ss")
|
|
} |