<?php echo date('s', $_SERVER['REQUEST_TIME']); ?>
var temp; var d=new Date; body.onload=function(){temp=(new Date)-d;}