Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/09/2014, 09:14
Avatar de hhs
hhs
Colaborador
 
Fecha de Ingreso: junio-2013
Ubicación: México
Mensajes: 2.995
Antigüedad: 11 años, 8 meses
Puntos: 379
Respuesta: Tratar los datos de un objeto date()

Código PHP:
Ver original
  1. $dateTime = PHPExcel_Shared_Date::ExcelToPHPObject($startTime);
  2. $dateTime->sub(new DateInterval('PT2H'));
  3. $dateTime->format('Y-m-d H:i:s');
No olvides revisar la documentación como te recomendaron
__________________
Saludos
About me
Laraveles
A class should have only one reason to change.