Return to Snippet

Revision: 52125
at October 13, 2011 22:34 by flipace


Initial Code
$s = $a['sql_timestamp'];
$s1 = explode("-",$s);
$s2 = explode(" ",$s1[2]);						
$s3 = explode(":",$s2[1]);							
$unix_timestamp = mktime($s3[0],$s3[1], $s3[2], $s1[1], $s2[0], $s1[0]);

Initial URL

                                

Initial Description

                                

Initial Title
MySQL Timestamp to UNIX Timestamp

Initial Tags

                                

Initial Language
PHP