- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$starttime='1899-12-30T16:30:00';
echo $starttime . "\n\r";
echo 'start: ' . date('H:i:s', strtotime($starttime)) . "\n\r";
echo "\n\r";
$end = '1899-12-30T16:45:00';
echo $end . "\n\r";
echo 'end: ' . date('H:i:s',strtotime($end));
/*
date_default_timezone_set('America/New_York');
$starttime='1899-12-30T16:30:00';
echo $starttime . "\n\r";
echo date('H:i:s', strtotime($starttime)) . "\n\r";
*/