運(yùn)行時(shí)配置

這些函數(shù)的行為受 php.ini 中的設(shè)置影響。

日期/時(shí)間配置選項(xiàng)
名字 默認(rèn) 可修改范圍 更新日志
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  
有關(guān) PHP_INI_* 樣式的更多詳情與定義,見(jiàn) 配置可被設(shè)定范圍。

這是配置指令的簡(jiǎn)短說(shuō)明。

date.default_latitude float

默認(rèn)緯度。

date.default_longitude float

默認(rèn)經(jīng)度。

date.sunrise_zenith float

默認(rèn)日出天頂。

date.sunset_zenith float

默認(rèn)日落天頂。

date.timezone string

在未設(shè)定 TZ 環(huán)境變量時(shí)用于所有日期/時(shí)間函數(shù)的默認(rèn)時(shí)區(qū)。優(yōu)先順序在 date_default_timezone_get() 頁(yè)面中有說(shuō)明。 支持的時(shí)區(qū)可參見(jiàn) 所支持的時(shí)區(qū)列表。

注意: 前四個(gè)配置選項(xiàng)目前僅用于 date_sunrise()date_sunset()