RE: [PHP-ES] Restar fechas en PHP

From: Date: Thu, 26 Apr 2001 11:42:03 +0000
Subject: RE: [PHP-ES] Restar fechas en PHP
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-9273@lists.php.net to get a copy of this message
Cuando hago la resta, con timestamp: $dias=timestamp($fec)-timestamp($fieldFe_mo) me sale lo siguiente: Fatal error: Call to undefined function: timestamp() in c:\inetpub\wwwroot\hk3r$5d982.php3 on line 51 ¿Por qué me sale este error? ¿Cuál es el formato de Timestamp? Salu2 -VICTOR- -----Mensaje original----- De: Carlos Falo Hervás [mailto:carles@bisinteractive.net] Enviado el: jueves, 26 de abril de 2001 13:32 Para: lista@phpes.com Asunto: RE: [PHP-ES] Restar fechas en PHP -----Mensaje original----- De: Victor del Burgo [mailto:victor.delburgo@realiabusiness.com] Enviado el: jueves, 26 de abril de 2001 13:02 Para: lista@phpes.com Asunto: [PHP-ES] Restar fechas en PHP Buenass: ¿Alguien me podría decir alguna función para restar 2 fechas? Salu2 -VICTOR- Las conviertes a TIMESTAMP y restas, luego transformas los segundos que quedan en lo que necesites Slàinte --------------------------------------------------------------------- Archivo On-line: http://www.phpes.com/ Manual PHP en español: http://www.php.net/manual/es/ Para dar de baja la suscripción, mande un mensaje a: lista-unsubscribe@phpes.com

« previous php.general.es (#9273) next »