#引用moment
import moment from 'moment';
#时区设置
moment.locale('zh-cn');
const now = moment(new Date())
let regNextHour = now.set({'hour': 12, 'minute': 30, 'second': 0}).add(1, 'days').format('YYYY-MM-DD HH:mm:ss'); console.log("regNextHour",regNextHour) now.set({'minute': 0, 'second': 0}).add(1, 'H'); console.log("<<<<<<<<",now.format('YYYY-MM-DD HH:mm:ss'))