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