PHP date_default_timezone_get() 函数

PHP 教程 · 2019-01-23 19:11:52

实例

返回默认时区:

<?php
echo date_default_timezone_get();
?>

定义和用法

date_default_timezone_get() 函数返回脚本中所有日期/时间函数使用的默认时区。

语法

date_default_timezone_get();

技术细节

返回值: 以字符串返回时区。
PHP 版本: 5.1+
更新日志: 从 PHP 5.4+ 开始,时区不再从操作系统获取信息,TZ 变量不再被使用。

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

查看所有标签

Data Structures and Algorithms in Python

Data Structures and Algorithms in Python

Michael T. Goodrich、Roberto Tamassia、Michael H. Goldwasser / John Wiley & Sons / 2013-7-5 / GBP 121.23

Based on the authors' market leading data structures books in Java and C++, this book offers a comprehensive, definitive introduction to data structures in Python by authoritative authors. Data Struct......一起来看看 《Data Structures and Algorithms in Python》 这本书的介绍吧!

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

html转js在线工具
html转js在线工具

html转js在线工具

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

UNIX 时间戳转换