dateCalculation(second) { //返回天、时、分
if (second > 0) {
var day = 0;
var hour = 0;
var minute = 0;
var sec = 0;
var data = {};
minute = Math.floor(second / (60))
sec = Math.floor(second - 60 * minute)
if (parseInt(minute) > 60) {
hour = parseInt(minute / 60);
minute %= 60; //算出有多分钟
}
if (parseInt(hour) > 24) {
day = parseInt(hour / 24);
hour %= 24; //算出有多分钟
}
data.day = day;
data.hour = hour;
data.minute = minute;
data.sec = sec
return data;
}
}
10-21
2067
11-11
250
11-08
451