import Moment from 'moment';
// 时间戳(毫秒)转化为标准时间格式
export function getFullTime(timeStamp) {
const stamp = new Date(timeStamp);
const time = Moment(stamp).format('YYYY-MM-DD HH:mm:ss');
return time;
}
import Moment from 'moment';
// 时间戳(毫秒)转化为标准时间格式
export function getFullTime(timeStamp) {
const stamp = new Date(timeStamp);
const time = Moment(stamp).format('YYYY-MM-DD HH:mm:ss');
return time;
}