运行时配置
这些函数的行为受 php.ini 中的设置影响。
名字 | 默认 | 可修改范围 | 更新日志 |
---|---|---|---|
date.default_latitude | "31.7667" | PHP_INI_ALL | |
date.default_longitude | "35.2333" | PHP_INI_ALL | |
date.sunrise_zenith | "90.83" | PHP_INI_ALL | |
date.sunset_zenith | "90.83" | PHP_INI_ALL | |
date.timezone | "" | PHP_INI_ALL |
这是配置指令的简短说明。
-
date.default_latitude
float -
默认纬度。
-
date.default_longitude
float -
默认经度。
-
date.sunrise_zenith
float -
默认日出天顶。
-
date.sunset_zenith
float -
默认日落天顶。
-
date.timezone
string -
在未设定 TZ 环境变量时用于所有日期/时间函数的默认时区。优先顺序在 date_default_timezone_get() 页面中有说明。 支持的时区可参见 所支持的时区列表。
注意: 前四个配置选项目前仅用于 date_sunrise() 和 date_sunset()。

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/datetime.configuration.php