PHP Extraer tiempo de fecha y hora
$time = '2013-01-22 10:45:45';
echo $time = date("H:i:s",strtotime($time));
Indian Gooner
$time = '2013-01-22 10:45:45';
echo $time = date("H:i:s",strtotime($time));
<?php
$date = new DateTime('2000-01-01');
echo $date->format('Y-m-d H:i:s');
?>
<?php
$date = new DateTime('2000-01-01');
echo $date->format('Y-m-d H:i:s');
?>