Easy Tutorial
❮ Php Ref Xml Php Pdo Lobs ❯

PHP date_offset_get() Function

PHP Date/Time Reference Manual

Example

Returns the timezone offset in seconds for Oslo (in Norway, Europe) during winter and summer relative to UTC:


Definition and Usage

The date_offset_get() function returns the timezone offset.

Syntax

Parameter Description
object Required. Specifies a DateTime object created with date_create()

Technical Details

Return Value: Returns the timezone offset in seconds relative to UTC if successful, FALSE if failed.
PHP Version: 5.2+
--- ---
❮ Php Ref Xml Php Pdo Lobs ❯