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.

Method of the class: ActionScheduler_DateTime{}

No Hooks.

Return

Int.

Usage

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

ActionScheduler_DateTime::getTimestamp() code WC 7.3.0

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