 
			
				10/03/2007, 15:35
			
			
			     |  
        |     Colaborador   |    |    Fecha de Ingreso: marzo-2007  Ubicación: Lima Perú  
						Mensajes: 2.231
					  Antigüedad: 18 años, 7 meses Puntos: 67     |        |  
  |      Re: restarles minutos y segundos a la hora        Podrías probar con ese codigo:   
function restar (h, m, s) { 
var hoy = new Date(); 
var mseg = hoy.getTime(); 
mseg -= h*60*60*1000; 
mseg -= m*60*1000; 
mseg -= s*1000; 
hoy.setTime(mseg);   
var ahora = hoy.getHours()+":"+hoy.getMinutes()+":"+hoy.getSec  onds(); 
return (ahora); 
}   
Este código te permite, no solo restar minutos y segundos sino también horas.            |