Menu Samaritan's Purse

TIMEZONE_OFFSET_GET

Returns the timezone offset from GMT

SYNTAX

timezone_offset_get ( DateTimeZone $object , DateTimeInterface $datetime ) : int

PARAMETERS

object

A DateTimeZone object returned by timezone_open()

datetime

DateTime that contains the date/time to compute the offset from.

RETURN

Returns time zone offset in seconds on success or FALSE on failure.

EXAMPLES

32400

PHP