PHP timezone_name_get() 函数

PHP 教程 · 2019-01-24 10:57:46

实例

返回时区的名称:

<?php
$tz=timezone_open("Europe/Paris");
echo timezone_name_get($tz);
?>

定义和用法

timezone_name_get() 返回时区的名称。

语法

timezone_name_get(object);

参数 描述
object 必需。规定一个 DateTimeZone 对象。

技术细节

返回值: 从时区列表中返回时区的名称。
PHP 版本: 5.2+

点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html

查看所有标签

Refactoring

Refactoring

Martin Fowler、Kent Beck、John Brant、William Opdyke、Don Roberts / Addison-Wesley Professional / 1999-7-8 / USD 64.99

Refactoring is about improving the design of existing code. It is the process of changing a software system in such a way that it does not alter the external behavior of the code, yet improves its int......一起来看看 《Refactoring》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具