formatTime(date) {let timeStamp = Date.parse(date);let now = new Date(timeStamp),y = now.getFullYear(),m = now.getMonth() + 1,d = now.getDate();return (y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d) + ' ' + now.toTimeString().substr(0, 8));}
如果觉得《时间戳转换标准时间格式(年月日-时分秒)》对你有帮助,请点赞、收藏,并留下你的观点哦!