PHP Manual
timezone_offset_get
Description
int timezone_offset_get ( DateTimeZone object, DateTime datetime )int DateTimeZone::getOffset ( DateTime datetime )
This function returns the offset to GMT for the date/time specified in the
datetime parameter. The GMT offset is calculated
with the timezone information contained in the DateTime object being used.
Parameters
objectDateTimeZone object.
datetimeDateTime that contains the date/time to compute the offset from.
Examples
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




