PHP date_offset_get() Function

PHP Date/Time Reference : Return the timezone offset for Oslo (in Norway, Europe) in seconds from UTC, winter and summer

Definition and Usage

The date_offset_get() function returns the timezone offset.

Syntax

date_offset_get(object)

Parameter Values

Parameter Description
object Required. Specifies a DateTime object returned by date_create()

Technical Details

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

❮ PHP Date/Time Reference