Ver Mensaje Individual
  #3 (permalink)  
Antiguo 23/01/2013, 07:31
Avatar de dontexplain
dontexplain
 
Fecha de Ingreso: junio-2012
Mensajes: 536
Antigüedad: 12 años, 7 meses
Puntos: 127
Respuesta: script calcular horas

Código Javascript:
Ver original
  1. hacord = 15;
  2. hreal = new Date().getHours();
  3.  
  4. total = hreal - hacord;

Un saludo.
__________________
21añero.
HTML/CSS, PHP, JS/jQuery, Mysql; NodeJS/Socket.io (& V8); C++ ; Python (wxpy); Ensamblador.
Músico (clarinetista/pianista) y compositor