Use checkDateFormat() to check if a given string contains a
proper time. The usage is exact the same as with checking Dates, only
date_format should contain the parts which you expect to have.
Example 570. Testing a time
<?php
$locale = new Zend_Locale('de_AT');
if (Zend_Locale_Format::checkDateFormat('13:44:42',
array('date_format' => 'HH:mm:ss',
'locale' => $locale)) {
print "time";
} else {
print "not a time";
}




