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://codercto.com/courses/l/5.html

查看所有标签

The Four

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》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具