WC_DateTime::getOffsetTimestamp() public WC 3.0.0
Get the timestamp with the WordPress timezone offset added or subtracted.
{} Это метод класса: WC_DateTime{}
Хуков нет.
Возвращает
Число.
Использование
$WC_DateTime = new WC_DateTime(); $WC_DateTime->getOffsetTimestamp();
Список изменений
С версии 3.0.0 | Введена. |
Код WC_DateTime::getOffsetTimestamp() WC DateTime::getOffsetTimestamp WC 5.0.0
public function getOffsetTimestamp() {
return $this->getTimestamp() + $this->getOffset();
}