WC_DateTime::getTimestamp()publicWC 3.0.0ReturnTypeWillChange

Missing in PHP 5.2 so just here so it can be supported consistently.

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

Хуков нет.

Возвращает

int.

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

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

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

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

Код WC_DateTime::getTimestamp() WC 8.7.0

public function getTimestamp() {
	return method_exists( 'DateTime', 'getTimestamp' ) ? parent::getTimestamp() : $this->format( 'U' );
}