// 比较年月日时分，大于返回1,等于返回0,小于返回-1
function compareMinute(d1, d2) {
  var date1 = new Date(d1);
  var date2 = new Date(d2);
  date1.setSeconds(0, 0);
  date2.setSeconds(0, 0);
  var t1 = date1.getTime();
  var t2 = date2.getTime();
  if (t1 === t2) return 0;
  return t1 > t2 ? 1 : -1;
}
export default compareMinute;