WordPress at Your Fingertips
function is not described

WC_DateTime::getTimestamp() public WC 3.0.0

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

{} It's a method of the class: WC_DateTime{}

No Hooks.

Return

Int.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of WC_DateTime::getTimestamp() WC 5.9.0

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