function tf_to_mil in Office Hours 5
2 calls to tf_to_mil()
- office_hours_field in ./
office_hours.module - implementation of hook_field Define the behavior of a field type.
- office_hours_field_settings in ./
office_hours.module - implementation of hook_field Handle the parameters for a field.
File
- ./
office_hours.module, line 528 - Creates a field and widget for inserting working or office hours per day
Code
function tf_to_mil($hour) {
list($hr, $min) = explode(":", $hour);
$hr = $hr * 60 + $min;
return $hr;
}