秒转为时分秒格式 代码:
1 function secToTime ( secs:int ):String {
2 var h:int = Math.floor ( secs / 3600);
3 var m:int = Math.floor ( ( secs - h * 3600 ) / 60 );
4 var s:int = secs - h * 3600 - m * 60;
5 return h + " : " + m + " : " + s;
6 }
2 var h:int = Math.floor ( secs / 3600);
3 var m:int = Math.floor ( ( secs - h * 3600 ) / 60 );
4 var s:int = secs - h * 3600 - m * 60;
5 return h + " : " + m + " : " + s;
6 }