Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/10/2012, 07:48
Avatar de carlos_belisario
carlos_belisario
Colaborador
 
Fecha de Ingreso: abril-2010
Ubicación: Venezuela Maracay Aragua
Mensajes: 3.156
Antigüedad: 14 años
Puntos: 461
Respuesta: Consulta resta de tiempo a string

otra forma un tanto mas simple, pero tienes que tener php5.2+
Código PHP:
Ver original
  1. $date = new DateTime('03:14:00');
  2. echo $date->format('H:i:s');   
  3. $date->modify('-6 hours');
  4. echo "<br />" .$date->format('H:i:s');

saludos
__________________
aprende d tus errores e incrementa tu conocimientos
it's not a bug, it's an undocumented feature By @David
php the right way