分别定义,怎么调整都行
let date = new Date();
let year = date.getFullYear();
let month = date.getMonth() + 1;
let date2 = date.getDate();
let hours = date.getHours();
let seconds = date.getSeconds();
let minutes = date.getMinutes();
let time = JSON.stringify(year + '-' + month + '-' + date2 + ' ' + hours + ':' + minutes + ':' + seconds);
msg.payload =