Re: Convert a SQL compliant date to Epoc Unix seconds

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux