protected function createDateTimeControl($container, $column, $record)
{
$value = $this->getRecordPropertyValue($column, $record);
$control = $this->createDateControl($container, $column, $record);
$container->Controls[] = ' @ ';
$time = $this->createTimeControl($container, $column, $record);
if (!empty($value)) {
$match = array();
if (preg_match('/(\\d+):(\\d+):?(\\d+)?/', substr($value, 11), $match)) {
$time[0]->setSelectedValue(intval($match[1]));
$time[1]->setSelectedValue(intval($match[2]));
if (isset($match[3])) {
$time[2]->setSelectedValue(intval($match[3]));
}
}
}
$time[0]->setID('scaffold_time_hour');
return array($control, $time[0], $time[1], $time[2]);
}