var hour = ms/1000/60/60^0 ; var min = (ms-hour*1000*60*60)/1000/60^0 ; var sec = (ms-hour*1000*60*60-min*1000*60)/1000^0 ;