SimplePie_Enclosure::get_duration() public WP 1.0
Get the duration of the enclosure
{} Это метод класса: SimplePie_Enclosure{}
Хуков нет.
Возвращает
Строку/Число/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(true|false)
- Convert seconds into hh:mm:ss
Код SimplePie_Enclosure::get_duration() SimplePie Enclosure::get duration WP 5.7.1
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;
}