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 Hard Thing About Hard Things
Ben Horowitz / HarperBusiness / 2014-3-4 / USD 29.99
Ben Horowitz, cofounder of Andreessen Horowitz and one of Silicon Valley's most respected and experienced entrepreneurs, offers essential advice on building and running a startup—practical wisdom for ......一起来看看 《The Hard Thing About Hard Things》 这本书的介绍吧!