WC_DateTime::getOffset()publicWC 1.0ReturnTypeWillChange

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

Method of the class: WC_DateTime{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_DateTime::getOffset() code WC 8.7.0

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