function _office_hours_tf_to_mil in Office Hours 6
Same name and namespace in other branches
- 6.2 office_hours.module \_office_hours_tf_to_mil()
File
- ./
office_hours.module, line 356 - Creates a field and widget for inserting working or office hours per day
Code
function _office_hours_tf_to_mil($hour) {
if (strstr($hour, ':') == FALSE || is_null($hour)) {
return $hour;
}
list($hr, $min) = explode(":", $hour);
$hr = $hr * 60 + $min;
return $hr;
}