WC_DateTime::set_utc_offset
Set UTC offset - this is a fixed offset instead of a timezone.
Method of the class: WC_DateTime{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_DateTime = new WC_DateTime(); $WC_DateTime->set_utc_offset( $offset );
- $offset(int) (required)
- Offset.
WC_DateTime::set_utc_offset() WC DateTime::set utc offset code WC 10.7.0
public function set_utc_offset( $offset ) {
$this->utc_offset = intval( $offset );
}