public function rule_iso_datetime($a)
{
$parts = explode(' ', $a);
$msg = 'Must be a valid ISO datetime';
if (count($parts) != 2) {
return $this->fail($msg);
}
try {
$this->rule_iso_date($parts[0]);
} catch (Exception $e) {
return $this->fail($msg);
}
try {
$this->rule_iso_time($parts[1]);
} catch (Exception $e) {
return $this->fail($msg);
}
}