function _perfmon_seconds_to_time in Performance monitor 8
Same name and namespace in other branches
- 7 perfmon.inc \_perfmon_seconds_to_time()
Convert seconds to time.
1 call to _perfmon_seconds_to_time()
- perfmon_get_mysql_performance_variables in ./
perfmon.module - Describes mysql performance variables.
File
- ./
perfmon.module, line 359 - Stand-alone perfmon test system.
Code
function _perfmon_seconds_to_time($seconds) {
$dtF = new \DateTime('@0');
$dtT = new \DateTime("@{$seconds}");
return $dtF
->diff($dtT)
->format(t('%a days, %h hours, %i minutes and %s seconds'));
}