我如何从datetime对象获得时区?
<pre>DateTimeZone Object
(
[timezone_type] => 3
[timezone] => UTC
)
尝试根据要求获取区域对象:
$tz = new DateTimeZone('Australia/Melbourne');
到达属性后的目标:
$name = $tz->getName();
echo $name;
简单地您可以通过> ->
获得echo $timezone->timezone;
$ webhooknotification-> subscription-> billingperiodstartdate-> getTimeZone(( -> getName((