ActionScheduler_DateTime::getTimestamppublicWC 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.

Returns

Int.

Usage

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

ActionScheduler_DateTime::getTimestamp() code WC 10.6.2

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