SimplePie_Enclosure::get_duration()publicWP 1.0

Get the duration of the enclosure

{} Это метод класса: SimplePie_Enclosure{}

Хуков нет.


Строку|int|null. 'hh:mm:ss' string if $convert was specified, otherwise integer (or null if none found)


$SimplePie_Enclosure = new SimplePie_Enclosure();
$SimplePie_Enclosure->get_duration( $convert );
Convert seconds into hh:mm:ss
По умолчанию: false

Код SimplePie_Enclosure::get_duration() WP 6.0.2

public function get_duration($convert = false)
	if ($this->duration !== null)
		if ($convert)
			$time = SimplePie_Misc::time_hms($this->duration);
			return $time;

		return $this->duration;

	return null;