rifat on 06/04/10
Last Edited at 06/04/10 07:51pm
function mysql2php($str) { list($date, $time) = explode(' ', $str); list($year, $month, $day) = explode('-', $date); list($hour, $minute, $second) = explode(':', $time); $timestamp = mktime($hour, $minute, $second, $month, $day, $year); return $timestamp;}
Report this snippet Tweet
Comment:
You need to login to post a comment.