WordPress at a glance
function is not described

wp_timezone() WP 5.3.0

Retrieves the timezone from site settings as a DateTimeZone object.

Timezone can be based on a PHP timezone string or a ±HH:MM offset.

No Hooks.

Return

DateTimeZone. Timezone object.

Usage

wp_timezone();

Changelog

Since 5.3.0 Introduced.

Code of wp_timezone() WP 5.7

<?php
function wp_timezone() {
	return new DateTimeZone( wp_timezone_string() );
}