From 5101df15151e3a083509856fef661f0fa2f3d706 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Tue, 12 Dec 2006 12:44:42 +0000 Subject: [PATCH] - Fixed bug #39805: Make these docs less vague. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@224894 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/timezone-offset-get.xml | 43 +++++++++++++++++-- 1 file changed, 40 insertions(+), 3 deletions(-) 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); +?> +]]> + + + + +