You are here

public function HMSServiceInterface::seconds_to_formatted in HMS Field 8

Returns a formatted string form the number of seconds.

Parameters

$seconds:

string $format:

bool|TRUE $leading_zero:

Return value

mixed

1 method overrides HMSServiceInterface::seconds_to_formatted()
HMSService::seconds_to_formatted in src/HMSService.php
Returns a formatted string form the number of seconds.

File

src/HMSServiceInterface.php, line 69
Contains \Drupal\hms_field\HMSServiceInterface.

Class

HMSServiceInterface
Interface HMSServiceInterface.

Namespace

Drupal\hms_field

Code

public function seconds_to_formatted($seconds, $format = 'h:mm', $leading_zero = TRUE);