Re: Convert a SQL compliant date to Epoc Unix seconds

From: Date: Wed, 06 Oct 2004 10:49:35 +0000
Subject: Re: Convert a SQL compliant date to Epoc Unix seconds
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-36650@lists.php.net to get a copy of this message
Stéphane Pinel wrote:
I'm looking for a simple way to convert a SQL compliant date (eg 2004-09-06) into a Unix Epoc seconds (similar to the one returned by function "time()").
strtotime() or the database may have something you can use in your query (like UNIX_TIMESTAMP() in MySQL). -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.db (#36650) next »