PHP timezone_name_get() 函数
PHP 教程
· 2019-01-24 10:57:46
实例
返回时区的名称:
<?php
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>
定义和用法
timezone_name_get() 返回时区的名称。
语法
timezone_name_get(object);
| 参数 | 描述 |
|---|---|
| object | 必需。规定一个 DateTimeZone 对象。 |
技术细节
| 返回值: | 从时区列表中返回时区的名称。 |
|---|---|
| PHP 版本: | 5.2+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
REST in Practice
Jim Webber、Savas Parastatidis、Ian Robinson / O'Reilly Media / 2010-9-24 / USD 44.99
Why don't typical enterprise projects go as smoothly as projects you develop for the Web? Does the REST architectural style really present a viable alternative for building distributed systems and ent......一起来看看 《REST in Practice》 这本书的介绍吧!