PHP date_timezone_get() 函数
PHP 教程
· 2019-01-24 05:59:21
实例
返回给定 DateTime 对象的时区:
<?php
$date=date_create(null,timezone_open("Europe/Paris"));
$tz=date_timezone_get($date);
echo timezone_name_get($tz);
?>
$date=date_create(null,timezone_open("Europe/Paris"));
$tz=date_timezone_get($date);
echo timezone_name_get($tz);
?>
定义和用法
date_timezone_get() 函数返回给定 DateTime 对象的时区。
语法
date_timezone_get(object);
| 参数 | 描述 |
|---|---|
| object | 必需。规定一个由 date_create() 返回的 DateTime 对象。 |
技术细节
| 返回值: | 如果成功则返回 DateTimeZone 对象,如果失败则返回 FALSE。 |
|---|---|
| PHP 版本: | 5.2+ |
点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html
Essential ActionScript 3.0
Colin Moock / Adobe Dev Library / June 22, 2007 / $34.64
ActionScript 3.0 is a huge upgrade to Flash's programming language. The enhancements to ActionScript's performance, feature set, ease of use, cleanliness, and sophistication are considerable. Essentia......一起来看看 《Essential ActionScript 3.0》 这本书的介绍吧!