note 20540 deleted from function.strtotime by vincent

From: Date: Thu, 11 Sep 2003 19:41:47 +0000
Subject: note 20540 deleted from function.strtotime by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-56175@lists.php.net to get a copy of this message
Note Submitter: samuele@artemisnetwork.com ---- If you have a timestamp(8) field in a MySql table (an integer having a YYYYMMDD format), you may need to convert it in a Unix timestamp format. This may be useful: function ts8totime ($ts) { return mktime(0,0,0,substr($ts,4,2),substr($ts,6,2),substr($ts,0,4)); }

« previous php.notes (#56175) next »