时间格式处理

秒转为时分秒格式 代码:

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 }
原文地址:https://www.cnblogs.com/sevenyuan/p/1606268.html