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
The Little Typer
Daniel P. Friedman、David Thrane Christiansen、Duane Bibby、Robert Harper、Conor Mcbride / MIT Press / 2018-10-16 / GBP 30.00
An introduction to dependent types, demonstrating the most beautiful aspects, one step at a time. A program's type describes its behavior. Dependent types are a first-class part of a language, and are......一起来看看 《The Little Typer》 这本书的介绍吧!