WC_DateTime::getOffsetTimestamp()publicWC 3.0.0

Get the timestamp with the WordPress timezone offset added or subtracted.

Метод класса: WC_DateTime{}

Хуков нет.

Возвращает

int.

Использование

$WC_DateTime = new WC_DateTime();
$WC_DateTime->getOffsetTimestamp();

Список изменений

С версии 3.0.0 Введена.

Код WC_DateTime::getOffsetTimestamp() WC 8.7.0

public function getOffsetTimestamp() {
	return $this->getTimestamp() + $this->getOffset();
}