jq 判断两个时间戳直间相差几天

function DateDiff(start, end) {
  var sdate = new Date(start);
  var now = new Date(end);
  var days = now.getTime() - sdate.getTime();
  var day = parseInt(days / (1000 * 60 * 60 * 24));
  return day;
}

  

原文地址:https://www.cnblogs.com/moguzi12345/p/13523639.html