diff --git a/reference/datetime/functions/timezone-offset-get.xml b/reference/datetime/functions/timezone-offset-get.xml index 2c7f938c90..892d3648a9 100644 --- a/reference/datetime/functions/timezone-offset-get.xml +++ b/reference/datetime/functions/timezone-offset-get.xml @@ -1,9 +1,9 @@ - + timezone_offset_get - Returns the timezone offset + Returns the timezone offset from GMT &reftitle.description; @@ -16,6 +16,11 @@ intDateTimeZone::getOffset DateTimedatetime + + 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. + @@ -34,7 +39,7 @@ datetime - DateTime to compute offset from. + DateTime that contains the date/time to compute the offset from. @@ -49,6 +54,38 @@ + + &reftitle.examples; + + + <function>date</function> examples + +getOffset($dateTimeTaipei); + +// Should show int(32400) (for dates after Sat Sep 8 01:00:00 1951 JST). +var_dump($timeOffset); +?> +]]> + + + + +