WC_DateTime::set_utc_offset()publicWC 1.0

Set UTC offset - this is a fixed offset instead of a timezone.

Method of the class: WC_DateTime{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_DateTime = new WC_DateTime();
$WC_DateTime->set_utc_offset( $offset );
$offset(int) (required)
Offset.

WC_DateTime::set_utc_offset() code WC 8.7.0

public function set_utc_offset( $offset ) {
	$this->utc_offset = intval( $offset );
}