export function timeCycle(second) {
let h = parseInt(second/3600)
let m = parseInt(second/60%60)
return `${h> 0 ? `${h}h` : ''}${m>0 ? `${m}min` : ''}`
}
export function timeCycleTo(second) {
let h = parseInt(second/3600)
let m = parseInt(second/60%60)
let s = Math.ceil(second%60)>59 ? 59 : Math.ceil(second%60)
return `${h> 0 ? `${h}h` : ''}${m>0 ? `${m}min` : ''}${s}s`
}
export function toTimeCycle(second) {
let h = parseInt(second/3600)
let m = parseInt(second/60%60)
return `${h> 0 ? `${h}h` : ''} ${m>0 ? `${m}min` : ''}`
}