Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/11/2009, 13:34
Avatar de huesos52
huesos52
Colaborador
 
Fecha de Ingreso: febrero-2009
Ubicación: Manizales - Colombia
Mensajes: 5.980
Antigüedad: 16 años, 1 mes
Puntos: 360
Respuesta: hrs en tre hraini y hrafin

Código mysql:
Ver original
  1. mysql> select *from ts;
  2. +---------------------+---------------------+
  3. | fecha               | fecha2              |
  4. +---------------------+---------------------+
  5. | 2009-11-17 13:22:40 | 2009-11-17 14:33:30 |
  6. +---------------------+---------------------+
  7. 1 row in set (0.00 sec)
  8.  
  9. mysql> select sec_to_time(time_to_sec(time(fecha2))-time_to_sec(time(fecha))) tiempo_transcurrido from ts;
  10. +---------------------+
  11. | tiempo_transcurrido |
  12. +---------------------+
  13. | 01:10:50            |
  14. +---------------------+
  15. 1 row in set (0.02 sec)
  16.  
  17. mysql>

Así?
__________________
Without data, You are another person with an opinion.
W. Edwads Deming