Easy Tutorial
❮ Php Pdo Prepared Statements Func String Trim ❯

PHP timezone_offset_get() Function

PHP Date/Time Reference Manual

Example

Returns the timezone offset relative to GMT:


Definition and Usage

The timezone_offset_get() function returns the timezone offset relative to GMT.

Syntax

Parameter Description
object Required. Specifies a timezone object created by timezone_open()
datetime Required. Specifies the date/time to calculate the offset for.

Technical Details

Return Value: Returns the timezone offset in seconds on success, FALSE on failure.
PHP Version: 5.2+
--- ---

❮ Php Pdo Prepared Statements Func String Trim ❯