WC_DateTime::getOffsetTimestamppublicWC 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 9.9.3

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