function sec2time($sec){
$hh = intval(floor($sec/3600));
$mm = ($sec%3600)/60;
if($hh!='0'){
if($mm=='0'){
$res = $hh.'小时';
}else{
$res = $hh.'小时'.$mm.'分';
}
}else{
$res = $mm.'分钟';
}
return $res;
}