WordPress at a glance
function is not described

wc_timezone_offset() WC 3.0.0

Get timezone offset in seconds.

No Hooks.

Return

float. Nothing.

Usage

wc_timezone_offset();

Changelog

Since 3.0.0 Introduced.

Code of wc_timezone_offset() WC 5.3.0

<?php
function wc_timezone_offset() {
	$timezone = get_option( 'timezone_string' );

	if ( $timezone ) {
		$timezone_object = new DateTimeZone( $timezone );
		return $timezone_object->getOffset( new DateTime( 'now' ) );
	} else {
		return floatval( get_option( 'gmt_offset', 0 ) ) * HOUR_IN_SECONDS;
	}
}