wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_timezone › WordPress Function

Since5.3.0
已弃用n/a
wp_timezone ( 没有参数 )
返回:
  • (DateTimeZone) Timezone object.
定义在:
文档:

Retrieves the timezone of the site as a `DateTimeZone` object.

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


源码

function wp_timezone() {
	return new DateTimeZone( wp_timezone_string() );
}