執行時配置

執行時配置

這些函式的行為受 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 
有關 PHP_INI_* 樣式的更多詳情與定義,見 配置可被設定範圍

這是配置指令的簡短說明。

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()

Leave a Reply

Your email address will not be published. Required fields are marked *