WordPress at a glance
function is not described

ActionScheduler_TimezoneHelper::get_local_timezone_offset() protected WC 2.1.0

Get timezone offset in seconds.

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

No Hooks.

Return

float.

Usage

$result = ActionScheduler_TimezoneHelper::get_local_timezone_offset();

Changelog

Since 2.1.0 Introduced.

Code of ActionScheduler_TimezoneHelper::get_local_timezone_offset() WC 5.0.0

<?php
protected static function get_local_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;
	}
}