You are here

public function DurationServiceInterface::getSecondsFromDurationString in Duration Field 8.2

Same name and namespace in other branches
  1. 3.0.x src/Service/DurationServiceInterface.php \Drupal\duration_field\Service\DurationServiceInterface::getSecondsFromDurationString()

Get the number of seconds an ISO 8601 duration string represents.

Parameters

string $durationString: The ISO 8601 duration string.

Return value

int The number of seconds the duration string represents.

1 method overrides DurationServiceInterface::getSecondsFromDurationString()
DurationService::getSecondsFromDurationString in src/Service/DurationService.php
Get the number of seconds an ISO 8601 duration string represents.

File

src/Service/DurationServiceInterface.php, line 138

Class

DurationServiceInterface
Interface for classes providing services for the Duration Field module.

Namespace

Drupal\duration_field\Service

Code

public function getSecondsFromDurationString($durationString);