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)


Return

(string)


Source

File: includes/libs/player/player.class.php

304private function get_start_time( $seconds ){
305    if( $seconds < 1 ){
306        return false;
307    }
308 
309    $h = floor( $seconds / HOUR_IN_SECONDS );
310    $m = floor( $seconds / MINUTE_IN_SECONDS );
311    $s = $seconds % MINUTE_IN_SECONDS;
312 
313    $hh = $h > 0 ? $h . 'h' : '';
314    $mm = $m > 0 ? $m . 'm' : '';
315    $ss = $s > 0 ? $s . 's' : '';
316 
317    return sprintf( '%s%s%s', $hh, $mm, $ss );
318}

Start your video site now!

Manage and coordinate your Vimeo channels, albums or videos with your WordPress website. Perfect fit for membership, portfolio, online courses or any type of video collection.

Get Vimeotheque PRO!