DateTimeZone::getOffset timezone_offset_get Returns the timezone offset from GMT &reftitle.description; &style.oop; public intDateTimeZone::getOffset DateTimeInterfacedatetime &style.procedural; inttimezone_offset_get DateTimeZoneobject DateTimeInterfacedatetime 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 DateTimeZone object being used. &reftitle.parameters; &date.datetimezone.description; datetime DateTime that contains the date/time to compute the offset from. &reftitle.returnvalues; Returns time zone offset in seconds. &reftitle.examples; <function>DateTimeZone::getOffset</function> examples getOffset($dateTimeTaipei); // Should show int(32400) (for dates after Sat Sep 8 01:00:00 1951 JST). var_dump($timeOffset); ?> ]]>