note 3208 modified in Date and Time functions by ronabop

From: Date: Sat, 10 Mar 2001 21:53:30 +0000
Subject: note 3208 modified in Date and Time functions by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-12186@lists.php.net to get a copy of this message
MySQL timestamp to date: function mysql_to_epoch ($datestr) { list($year,$month,$day,$hour,$minute,$second) = split("([^0-9])",$datestr); return date("U",mktime($hour,$minute,$second,$month,$day,$year)); } http://www.php.net/manual/date-and-time-functions.php

« previous php.notes (#12186) next »