时间计算
时间
'1 days' or ['-1 day', '3 month']
calcDate(new Date(), '-1 days'); /// date objectcalcDate(new Date(), '-1 DAYS'); /// date objectcalcDate(new Date(), ['-1 day', '+1 year', '-2 month', '2 weeks', '1 hour', '-3 minute', '45 seconds']); /// date object Copy
calcDate(new Date(), '-1 days'); /// date objectcalcDate(new Date(), '-1 DAYS'); /// date objectcalcDate(new Date(), ['-1 day', '+1 year', '-2 month', '2 weeks', '1 hour', '-3 minute', '45 seconds']); /// date object
时间计算