Estoy bastante confundido acerca de este.cómo agregar tiempo en el tiempo actual
Quiero capturar, la hora actual, que según la condición, quiero agregar el tiempo requerido, a la hora actual. por ejemplo.
current time = 06:47:10
//or should i hv to change this format to "2011-03-26 06:47:10 GMT"
if(a= 1 and b= min)
{ //add 1 min to
current time
}
else if(a= 1 and b= hour)
{ //add 1
hour to current time
}
else if(a= 1 and b=week)
{ //add 1
week to current time
}
Solo necesita agregar la salida de la condición anterior a la hora actual.
Por favor, guíame con esto.
Saludos
favor chech esta respuesta http://stackoverflow.com/questions/11019709/add-90-min-to-nsdate/29542106#29542106 –