将分钟数转为小时分钟
export function toHourMinute (t) {
if (t < 0) {
return ''
}
t > 1440 && (t -= 1440)
var e = t % 60
e < 10 && (e = '0' + e)
var r = Math.floor(t / 60)
return r < 10 && (r = '0' + r),
r + ':' + e
}
将分钟数转为小时分钟
export function toHourMinute (t) {
if (t < 0) {
return ''
}
t > 1440 && (t -= 1440)
var e = t % 60
e < 10 && (e = '0' + e)
var r = Math.floor(t / 60)
return r < 10 && (r = '0' + r),
r + ':' + e
}