This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
Player::get_start_time( $seconds )
Given a number of seconds, returns a formatted MMmSSs string
Parameters
- $seconds
-
(Required)
Source
File: includes/libs/player/player.class.php
304 | private function get_start_time( $seconds ){ |
309 | $h = floor ( $seconds / HOUR_IN_SECONDS ); |
310 | $m = floor ( $seconds / MINUTE_IN_SECONDS ); |
311 | $s = $seconds % MINUTE_IN_SECONDS; |
313 | $hh = $h > 0 ? $h . 'h' : '' ; |
314 | $mm = $m > 0 ? $m . 'm' : '' ; |
315 | $ss = $s > 0 ? $s . 's' : '' ; |
317 | return sprintf( '%s%s%s' , $hh , $mm , $ss ); |
Expand full source code
Collapse full source code