PHP date_default_timezone_get() 函数
PHP 教程
· 2019-01-23 19:11:52
实例
返回默认时区:
<?php
echo date_default_timezone_get();
?>
echo date_default_timezone_get();
?>
定义和用法
date_default_timezone_get() 函数返回脚本中所有日期/时间函数使用的默认时区。
语法
date_default_timezone_get();
技术细节
| 返回值: | 以字符串返回时区。 |
|---|---|
| PHP 版本: | 5.1+ |
| 更新日志: | 从 PHP 5.4+ 开始,时区不再从操作系统获取信息,TZ 变量不再被使用。 |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
The Four
Scott Galloway / Portfolio / 2017-10-3 / USD 28.00
NEW YORK TIMES BESTSELLER USA TODAY BESTSELLER Amazon, Apple, Facebook, and Google are the four most influential companies on the planet. Just about everyone thinks they know how they got there.......一起来看看 《The Four》 这本书的介绍吧!