WordPress at Your Fingertips
function is not described

WC_DateTime::getOffsetTimestamp() public WC 3.0.0

Get the timestamp with the WordPress timezone offset added or subtracted.

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

No Hooks.

Return

Int.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of WC_DateTime::getOffsetTimestamp() WC 5.9.0

public function getOffsetTimestamp() {
	return $this->getTimestamp() + $this->getOffset();
}