Function __global->display_time_period

Definitions

sources/temporal.php

  • Display a time period in a tidy human-readable way.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$seconds integer No No required parameter N/A N/A Number of seconds

Returns

  • Human-readable period
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Display a time period in a tidy human-readable way.
 *
 * @param  integer $seconds Number of seconds
 * @return string Human-readable period
 */

function display_time_period(int $seconds) : string