Configurația la rulare
Comportamentul acestor funcții este afectat de parametrii stabiliți în php.ini.
| Denumirea | Valoarea implicită | Poate fi modificată | Jurnalul modificărilor |
|---|---|---|---|
| date.default_latitude | "31.7667" | PHP_INI_ALL | Available since PHP 5.0.0. |
| date.default_longitude | "35.2333" | PHP_INI_ALL | Available since PHP 5.0.0. |
| date.sunrise_zenith | "90.583333" | PHP_INI_ALL | Available since PHP 5.0.0. |
| date.sunset_zenith | "90.583333" | PHP_INI_ALL | Available since PHP 5.0.0. |
| date.timezone | "" | PHP_INI_ALL | Available since PHP 5.1.0. |
Iată o explicație pe scurt a directivelor de configurare.
-
date.default_latitudefloat -
The default latitude.
-
date.default_longitudefloat -
The default longitude.
-
date.sunrise_zenithfloat -
The default sunrise zenith.
-
date.sunset_zenithfloat -
The default sunset zenith.
-
date.timezonestring -
The default timezone used by all date/time functions. Prior to PHP 5.4.0, this would only work if the TZ environment variable was not set. The precedence order for which timezone is used if none is explicitly mentioned is described in the date_default_timezone_get() page. See Lista zonelor orare susținute for a list of supported timezones.
Notă: The first four configuration options are currently only used by date_sunrise() and date_sunset().
