PHP timezone_name_get() 函數(shù)
PHP Date/Time 參考手冊(cè)
實(shí)例
返回時(shí)區(qū)的名稱:
<?php
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>
運(yùn)行實(shí)例 ?
定義和用法
timezone_name_get() 返回時(shí)區(qū)的名稱。
語(yǔ)法
timezone_name_get(object);
參數(shù) | 描述 |
object | 必需。規(guī)定一個(gè) DateTimeZone 對(duì)象。 |
技術(shù)細(xì)節(jié)
PHP Date/Time 參考手冊(cè)