PHP timezone_open() 函数

PHP 教程 · 2019-01-24 11:29:25

实例

创建一个新的 DateTimeZone 对象,然后返回时区的名称:

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

定义和用法

timezone_open() 创建一个新的 DateTimeZone 对象。

语法

timezone_open(timezone);

参数 描述
timezone 必需。规定一个时区。

提示: 查看 PHP 中支持的所有时区列表

技术细节

返回值: 成功则返回 DateTimeZone 对象,失败则返回 FALSE。
PHP 版本: 5.2+

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

查看所有标签

Design and Analysis of Distributed Algorithms (Wiley Series on P

Design and Analysis of Distributed Algorithms (Wiley Series on P

Nicola Santoro / Wiley-Interscience / 2006-10-27 / USD 140.95

This text is based on a simple and fully reactive computational model that allows for intuitive comprehension and logical designs. The principles and techniques presented can be applied to any distrib......一起来看看 《Design and Analysis of Distributed Algorithms (Wiley Series on P》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具