WordPress at Your Fingertips
function is not described

WC_DateTime::getOffset() public WC 1.0

Get UTC offset if set, or default to the DateTime object's offset.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_DateTime::getOffset() WC 5.9.0

public function getOffset() {
	return $this->utc_offset ? $this->utc_offset : parent::getOffset();
}