WordPress at Your Fingertips
function is not described

WC_DateTime::set_utc_offset() public WC 1.0

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

{} It's a method of the class: WC_DateTime{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_DateTime::set_utc_offset() WC 5.9.0

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