Function __global->find_timezone_offset
Definitions
sources/temporal.php
- For a UTC timestamp and timezone, find the timezone offset.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $time | TIME | No | No | required parameter | N/A | N/A | UTC time |
| $zone | string | No | No | required parameter | N/A | N/A | Timezone (boring style) |
Returns
- Timezone offset in seconds
- Type: integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* For a UTC timestamp and timezone, find the timezone offset.
*
* @param TIME $time UTC time
* @param string $zone Timezone (boring style)
* @return integer Timezone offset in seconds
*/
function find_timezone_offset(int $time, string $zone) : int
* For a UTC timestamp and timezone, find the timezone offset.
*
* @param TIME $time UTC time
* @param string $zone Timezone (boring style)
* @return integer Timezone offset in seconds
*/
function find_timezone_offset(int $time, string $zone) : int

