JAVASCRIPT
$(function(){
function mostrar_hora( ) {
var d = new Date();
var h = d.getHours();
var m = d.getMinutes();
var s = d.getSeconds();
if(m < 10){
m = '0'+m;
}
if(s < 10){
s = '0'+s;
}
$('#hora').html(h + ":" + m + ":" + s);
}
setInterval(function(){mostrar_hora();}, 1000);
mostrar_hora();
})