//计算倒计时
var getTime = function (hmin) {
if (hmin < 1000) {
return '00:00:00'
}
var time = parseInt(hmin / 1000)
var hour = Math.floor(time / 60 / 60)
time = time - hour * 60 * 60
if (hour < 10) {
hour = '0' + hour
}
var min = Math.floor(time / 60)
time = time - min * 60
if (min < 10) {
min = '0' + min
}
if (time < 10) {
time = '0' + time
}
if (hour >= 240) {
return '大于10天'
}
return hour + ':' + min + ':' + time
}
module.exports = {
getTime: getTime
}