Re:[OT] [PHP-ES] Comparacion entre Timestamp y time()

From: Date: Mon, 15 Dec 2003 04:53:27 +0000
Subject: Re:[OT] [PHP-ES] Comparacion entre Timestamp y time()
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-43640@lists.php.net to get a copy of this message
Hay diferencia entre el timeestamp de Php y el timestamp de Mysql. En php son los segundos transcurridos desde el 01/01/1970. En mysql es en formato AAAAMMDDHHMMSS. Timestamp en formato php: select * from tabla where (UNIX_TIMESTAMP()-campotabla)>(30*60) Timestamp en fotmato mysql; select * from tabla where (NOW() + 0)-(campotabla+0)>(30*60) 30 minutos * 60 segundos => 30*60 En el manual de mysql esta muy clarito. Josep Ma. Aribau Cano jm@infodos.com www.infodos.com

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