Yoast\WP\SEO\Promotions\Domain
Time_Interval::contains()
Checks if the given time is within the interval.
Метод класса: Time_Interval{}
Хуков нет.
Возвращает
true|false
. Whether the given time is within the interval.
Использование
$Time_Interval = new Time_Interval(); $Time_Interval->contains( $time ): bool;
- $time(int) (обязательный)
- The time to check.
Код Time_Interval::contains() Time Interval::contains Yoast 23.6
public function contains( int $time ): bool { return ( ( $time > $this->time_start ) && ( $time < $this->time_end ) ); }