note 19376 deleted from function.strtotime by vincent

From: Date: Thu, 11 Sep 2003 19:41:05 +0000
Subject: note 19376 deleted from function.strtotime by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56171@lists.php.net to get a copy of this message
Note Submitter: http://www.kfu.com/~nsayer ---- You should not use something like this to parse postgresql date output. You should ask postgresql to return the numeric format. You can do this with EXTRACT. For example SELECT EXTRACT(EPOCH FROM current_timestamp); should give you the same thing as time(). Check the postgresql docs for more variations on this theme.

« previous php.notes (#56171) next »