You are here

public function DurationServiceInterface::getSecondsFromDateInterval 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::getSecondsFromDateInterval()

Get the number of seconds a given duration represents.

Parameters

\DateInterval $dateInterval: The DateInterval representing the duration.

Return value

int The number of seconds the interval represents.

1 method overrides DurationServiceInterface::getSecondsFromDateInterval()
DurationService::getSecondsFromDateInterval in src/Service/DurationService.php
Get the number of seconds a given duration represents.

File

src/Service/DurationServiceInterface.php, line 127

Class

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

Namespace

Drupal\duration_field\Service

Code

public function getSecondsFromDateInterval(DateInterval $dateInterval);