WC_DateTime::getOffset
Get UTC offset if set, or default to the DateTime object's offset.
Method of the class: WC_DateTime{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_DateTime = new WC_DateTime(); $WC_DateTime->getOffset();
WC_DateTime::getOffset() WC DateTime::getOffset code WC 10.6.2
public function getOffset() {
return $this->utc_offset ?: parent::getOffset();
}