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

	private function get_start_time( $seconds ){
		if( $seconds < 1 ){
			return false;
		}

		$h = floor( $seconds / HOUR_IN_SECONDS );
		$m = floor( $seconds / MINUTE_IN_SECONDS );
		$s = $seconds % MINUTE_IN_SECONDS;

		$hh = $h > 0 ? $h . 'h' : '';
		$mm = $m > 0 ? $m . 'm' : '';
		$ss = $s > 0 ? $s . 's' : '';

		return sprintf( '%s%s%s', $hh, $mm, $ss );
	}

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!