getid3_lib::PlaytimeString

Advertisement

Syntax Syntax

getid3_lib::PlaytimeString( int $seconds )

Parameters Parameters

$seconds

(int) (Required)

Return Return

(string)

Source Source

File: wp-includes/ID3/getid3.lib.php

		$H = (int) floor( $seconds                            / 3600);
		$M = (int) floor(($seconds - (3600 * $H)            ) /   60);
		$S = (int) round( $seconds - (3600 * $H) - (60 * $M)        );
		return $sign.($H ? $H.':' : '').($H ? str_pad($M, 2, '0', STR_PAD_LEFT) : intval($M)).':'.str_pad($S, 2, 0, STR_PAD_LEFT);
	}

	/**
	 * @param int $macdate

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.