<?php 
	/*ini_set('date.timezone','America/Lima');
	$date1 = new DateTime('NOW');
	$date2 = new DateTime("2017-09-02 17:26:00");
	$diffS = $date2->getTimestamp() - $date1->getTimestamp();
	echo $diffS; */
	//($year < 1950 || $year > 2010) 
	//if($year >= 1950 && $year <= 2010)
	//echo($date2->getTimestamp());

?>


	<?php
/*ini_set('date.timezone','America/Lima');
//date_default_timezone_set('Europe/Lisbon'); //set your desired timezone
$date = new DateTime( 'NOW' );
$date2 = new DateTime( '2015/10/09 15:20:00' );
$diffSeconds = $date->getTimestamp() - $date2->getTimestamp();
echo $diffSeconds; */
//2020

$val="2017-09-02 06:39:000";


$cadena = "11:45pm";
$cadena = strtotime($cadena);
$cadena = date("H:i", $cadena);
echo $cadena."<br />";

?>