public function DurationServiceInterface::convertDateArrayToDurationString in Duration Field 8.2
Same name and namespace in other branches
- 3.0.x src/Service/DurationServiceInterface.php \Drupal\duration_field\Service\DurationServiceInterface::convertDateArrayToDurationString()
Convert array into an ISO 8601 duration string.
Parameters
array $input: An array containing the following keys:
- y (year)
- m (month)
- d (day)
- h (hour)
- i (minute)
- s (second)
Return value
string An ISO 8601 duration string.
See also
http://en.wikipedia.org/wiki/Iso8601#Durations
1 method overrides DurationServiceInterface::convertDateArrayToDurationString()
- DurationService::convertDateArrayToDurationString in src/
Service/ DurationService.php - Convert array into an ISO 8601 duration string.
File
- src/
Service/ DurationServiceInterface.php, line 43
Class
- DurationServiceInterface
- Interface for classes providing services for the Duration Field module.
Namespace
Drupal\duration_field\ServiceCode
public function convertDateArrayToDurationString(array $input);