- date: documentation ( source)
- preg_split: documentation ( source)
- strtotime: documentation ( source)
<?php
$fecha = "20/04/2015 19:11:33";
list($d, $M, $y, $h, $m, $s) = preg_split("/[\s,\/:]+/",$fecha);
echo "\n->";
echo strtotime("$d-$M-$y $h:$m:$s") - 1429575034;
echo "\n->";
echo strtotime("2015-20-04 19:11:33") - 1429575034;
echo "\n->";
echo strtotime("20/04/2015 19:11:33") . 'No funciona';
echo "\n->";
echo date("Y-m-d H:i:s", 1429635779 - 7*60*60);