diff --git a/reference/intl/dateformatter/localtime.xml b/reference/intl/dateformatter/localtime.xml
index 8260e20578d5..ae7fac60e2f9 100644
--- a/reference/intl/dateformatter/localtime.xml
+++ b/reference/intl/dateformatter/localtime.xml
@@ -26,8 +26,8 @@
intoffset&null;
- Converts string $value to a field-based time value ( an array of various fields), starting at
-$parse_pos and consuming as much of the input value as possible.
+ Converts string $string to a field-based time value (an array of various fields), starting at
+ $offset and consuming as much of the input value as possible.
@@ -39,7 +39,7 @@ $parse_pos and consuming as much of the input value as possible.
formatter
- The formatter resource
+ The formatter resource.
@@ -47,7 +47,7 @@ $parse_pos and consuming as much of the input value as possible.
string
- string to convert to a time
+ String to convert to a time.
@@ -55,10 +55,10 @@ $parse_pos and consuming as much of the input value as possible.
offset
- Position at which to start the parsing in $value (zero-based).
- If no error occurs before $value is consumed, $parse_pos will contain -1
- otherwise it will contain the position at which parsing ended .
- If $parse_pos > strlen($value), the parse fails immediately.
+ Position at which to start the parsing in $string (zero-based).
+ If no error occurs before $string is consumed, $offset will contain -1
+ otherwise it will contain the position at which parsing ended.
+ If $offset > strlen($string), the parse fails immediately.
@@ -66,7 +66,6 @@ $parse_pos and consuming as much of the input value as possible.
-
&reftitle.returnvalues;
@@ -74,7 +73,7 @@ $parse_pos and consuming as much of the input value as possible.
&return.falseforfailure;.
-
+
&reftitle.examples;
@@ -90,7 +89,9 @@ $fmt = datefmt_create(
'America/Los_Angeles',
IntlDateFormatter::GREGORIAN
);
+
$arr = datefmt_localtime($fmt, 'Wednesday, December 31, 1969 at 4:00:00 PM Pacific Standard Time', $offset);
+
echo 'First parsed output is ';
if ($arr) {
foreach ($arr as $key => $value) {
@@ -107,6 +108,7 @@ if ($arr) {
localtime('Wednesday, December 31, 1969 at 4:00:00 PM Pacific Standard Time', $offset);
+
echo 'First parsed output is ';
if ($arr) {
foreach ($arr as $key => $value) {