Date/Time
PHP Manual

date_offset_get

(PHP 5 >= 5.1.0)

date_offset_get — Returns the daylight saving time offset

说明

int date_offset_get ( DateTime $object )
int DateTime::getOffset ( void )

参数

object

DateTime object.

返回值

Returns DST offset in seconds on success or FALSE on failure.


Date/Time
PHP Manual