WC_DateTime::getOffset()
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() WC DateTime::getOffset code WC 9.6.0
public function getOffset() { return $this->utc_offset ?: parent::getOffset(); }