downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Tipurile resurselor> <Instalarea
[edit] Last updated: Thu, 12 Jan 2012

view this page in

Configurația la rulare

Comportamentul acestor funcții este afectat de parametrii stabiliți în php.ini.

Date/Time Configuration Options
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.
Pentru mai multe detalii și definiții ale modurilor PHP_INI_* accesați Where a configuration setting may be set.

Iată o explicație pe scurt a directivelor de configurare.

date.default_latitude float

The default latitude.

date.default_longitude float

The default longitude.

date.sunrise_zenith float

The default sunrise zenith.

date.sunset_zenith float

The default sunset zenith.

date.timezone string

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



add a note add a note User Contributed Notes Configurația la rulare
vigong at free dot fr 09-Jan-2012 10:57
mine is :

date.timezone = "Asia/Jakarta"
date.default_latitude = 6.116667
date.default_longitude = 106.650002
tularis at php dot net 28-Aug-2011 11:19
A list containing the longitudes and latitudes of a number of major cities around the world as compiled from all previous notes on this page.

// --- Asia --- //

// Baku, Azerbaijan, Asia
date.timezone = "Asia/Baku"
date.default_latitude = 40,2343
date.default_longitude = 49,5256

// Shanghai, China, Asia
date.timezone = "Asia/Shanghai"
date.default_latitude = 31.5167
date.default_longitude = 121.4500

// Delhi, India, Asia
date.timezone = "Asia/Delhi"
date.default_latitude = 28.40
date.default_longitude = 77.13

// Colombo, Sri Lanka, Asia
date.timezone = "Asia/Colombo"
date.default_latitude = 6.9319444
date.default_longitude = 79.8477778

// --- Australia --- //

// Canberra, Australia
date.timezone = "Australia/Canberra"
date.default_latitude = -35.308142
date.default_longitude = 149.124518

// --- Europe --- //

// London, England, Europe
date.timezone = "Europe/London"
date.default_latitude = 51.500181
date.default_longitude = -0.12619

// Berlin, Germany, Europe
date.timezone = "Europe/Berlin"
date.default_latitude = 52.5194
date.default_longitude = 13.4067

// Madrid, Spain, Europe
date.timezone = "Europe/Madrid"
date.default_latitude = 40.416126
date.default_longitude = -3.696706

 
show source | credits | stats | sitemap | contact | advertising | mirror sites