<script type="text/javascript">
var mydate=new Date();
document.write("当前时间:"+mydate+"<br>");
var dat=mydate.setTime( mydate.getTime() + 2* 60 * 60 * 1000);
document.write("推迟二小时时间:" + dat);
</script>