原文:http://543.com.cn/post/12.html
/*
/ 将毫秒转为时间(时、分、秒),
/ MillisecondsValue 为毫秒值
*/
function paserTime(MillisecondsValue:int):Date
{
var Hours:int
Hours=timevalue/(1000*60*60);
var Minutes:int;
Minutes=(timevalue-(1000*60*60)*Hours)/1000*60;
var Seconds:int;
Seconds=(timevalue-(1000*60*60*Hours)-(1000*60*Minutes))/1000;
var d:Date=new Date();
d.setHours(Number(Hours));
d.setMinutes(Number(Minutes));
d.setSeconds(Number(Seconds));
return d;
}