var other = video1.duration % 3600
var minute = Math.floor (other / 60)
var second = (other % 60).toFixed (2)
document.getElementById ('duration').innerHTML = hour + '时' + minute + '分' + second + '秒'
function formatDate(){var milliseconds=2698169*1000//秒变微秒
var dat = new Date(milliseconds)//生成日期
var year = dat.getFullYear()//取得年
var month = dat.getMonth()+1 //取得月,js从0开始取,所以+1
var date1 = dat.getDate()//取得天
var hour = dat.getHours()//取得小时
var minutes = dat.getMinutes()//取得分钟
var second = dat.getSeconds()//取得秒
alert(dat+" | "+year+"年"+month+"月"+date1+"日"+hour+"时"+minutes +"分"+second+"秒" )
}