Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/04/2012, 13:15
Avatar de gjx2
gjx2
 
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 15 años, 8 meses
Puntos: 139
Respuesta: cuenta regresiva (restar horas)

Uff tanto codigo para restar segundo a una hora .
con esto resuelves con la funcion mktime


Código PHP:
Ver original
  1. $h = "03:09:30";
  2. $hr = explode(":",$h);
  3. echo date("h:i:s", mktime($hr[0], $hr[1], $hr[2]-34));