<script language="javascript" type=text/javascript>
var date=new Date();
var year=date.getYear();
var month=date.getMonth()+1;
var day=date.getDate();
var hour=date.getHours();
var minute=date.getMinutes();
var second=date.getSeconds();
document.write(year+'-'+month+'-'+day+' '+hour+':'+minute+':'+second+'<br>');
function timer()
{
var date=new Date();
var year=date.getYear();
var month=date.getMonth()+1;
var day=date.getDate();
var hour=date.getHours();
var minute=date.getMinutes();
var second=date.getSeconds();
document.getElementById("idnow").innerHTML=(year+'-'+month+'-'+day+' '+hour+':'+minute+':'+second+'<br>'+(new Date()-Date.parse(document.lastModified))/1000/3600/24);
}
window.setInterval("timer()",10);
</script>
<span id="idnow"></span>