📅  最后修改于: 2022-03-11 15:04:04.494000             🧑  作者: Mango
var endDate = somedate;
var startdate = new Date(endDate);
var durationInMinutes = 20;
startdate.setMinutes(endDate.getMinutes() - durationInMinutes);