Function __global->date_default_timezone_set
Definitions
sources_custom/phpstub.php
- Sets the default timezone used by all date/time functions in a script.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $timezone_identifier | string | No | No | required parameter | N/A | N/A | Timezone identifier |
Returns
- Success status
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Sets the default timezone used by all date/time functions in a script.
*
* @param string $timezone_identifier Timezone identifier
* @return boolean Success status
*/
function date_default_timezone_set(string $timezone_identifier) : bool
* Sets the default timezone used by all date/time functions in a script.
*
* @param string $timezone_identifier Timezone identifier
* @return boolean Success status
*/
function date_default_timezone_set(string $timezone_identifier) : bool
