public function HMSServiceInterface::formatted_to_seconds in HMS Field 8
Returns number of seconds from a formatted string.
Parameters
$str:
string $format:
Return value
mixed
1 method overrides HMSServiceInterface::formatted_to_seconds()
- HMSService::formatted_to_seconds in src/
HMSService.php - Returns number of seconds from a formatted string.
File
- src/
HMSServiceInterface.php, line 59 - Contains \Drupal\hms_field\HMSServiceInterface.
Class
- HMSServiceInterface
- Interface HMSServiceInterface.
Namespace
Drupal\hms_fieldCode
public function formatted_to_seconds($str, $format = 'h:m:s', $element = [], $form_state = []);