Menu Riverview Church

DATE_OFFSET_GET

Returns the timezone offset

SYNTAX

date_offset_get ( DateTimeInterface $object ) : int

PARAMETERS

object

A DateTime object returned by date_create()

RETURN

Returns the timezone offset in seconds from UTC on success or FALSE on failure.

EXAMPLES

1

0

2

-14400

3

-18000
-14400

PHP