ActionScheduler_DateTime::getTimestamp()publicWC 1.0ReturnTypeWillChange

Get the unix timestamp of the current object.

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

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

Хуков нет.

Возвращает

int.

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

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

Код ActionScheduler_DateTime::getTimestamp() WC 8.7.0

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