28
28
<para >
29
29
Converts string $value to a field-based time value ( an array of various fields), starting at
30
30
$parse_pos and consuming as much of the input value as possible.
31
- </para >
31
+ </para >
32
32
</refsect1 >
33
33
34
34
<refsect1 role =" parameters" >
@@ -39,15 +39,15 @@ $parse_pos and consuming as much of the input value as possible.
39
39
<term ><parameter >formatter</parameter ></term >
40
40
<listitem >
41
41
<para >
42
- The formatter resource
42
+ The formatter resource
43
43
</para >
44
44
</listitem >
45
45
</varlistentry >
46
46
<varlistentry >
47
47
<term ><parameter >string</parameter ></term >
48
48
<listitem >
49
49
<para >
50
- string to convert to a time
50
+ string to convert to a time
51
51
</para >
52
52
</listitem >
53
53
</varlistentry >
@@ -58,14 +58,14 @@ $parse_pos and consuming as much of the input value as possible.
58
58
Position at which to start the parsing in $value (zero-based).
59
59
If no error occurs before $value is consumed, $parse_pos will contain -1
60
60
otherwise it will contain the position at which parsing ended .
61
- If $parse_pos > strlen($value), the parse fails immediately.
61
+ If $parse_pos > strlen($value), the parse fails immediately.
62
62
</para >
63
63
</listitem >
64
64
</varlistentry >
65
65
</variablelist >
66
66
</para >
67
67
</refsect1 >
68
-
68
+
69
69
70
70
<refsect1 role =" returnvalues" >
71
71
&reftitle.returnvalues;
@@ -90,7 +90,7 @@ $fmt = datefmt_create(
90
90
'America/Los_Angeles',
91
91
IntlDateFormatter::GREGORIAN
92
92
);
93
- $arr = datefmt_localtime($fmt, 'Wednesday, December 31, 1969 4:00:00 PM PT ', 0 );
93
+ $arr = datefmt_localtime($fmt, 'Wednesday, December 31, 1969 at 4:00:00 PM Pacific Standard Time ', $offset );
94
94
echo 'First parsed output is ';
95
95
if ($arr) {
96
96
foreach ($arr as $key => $value) {
@@ -114,7 +114,7 @@ $fmt = new IntlDateFormatter(
114
114
'America/Los_Angeles',
115
115
IntlDateFormatter::GREGORIAN
116
116
);
117
- $arr = $fmt->localtime('Wednesday, December 31, 1969 4:00:00 PM PT ', 0 );
117
+ $arr = $fmt->localtime('Wednesday, December 31, 1969 at 4:00:00 PM Pacific Standard Time ', $offset );
118
118
echo 'First parsed output is ';
119
119
if ($arr) {
120
120
foreach ($arr as $key => $value) {
@@ -129,8 +129,8 @@ if ($arr) {
129
129
&example.outputs;
130
130
<screen >
131
131
<![CDATA[
132
- First parsed output is tm_sec : 0 , tm_min : 0 , tm_hour : 16 , tm_year : 1969 ,
133
- tm_mday : 31 , tm_wday : 4 , tm_yday : 365 , tm_mon : 11 , tm_isdst : 0 ,
132
+ First parsed output is tm_sec : 0 , tm_min : 0 , tm_hour : 16 , tm_year : 69 ,
133
+ tm_mday : 31 , tm_wday : 3 , tm_yday : 365 , tm_mon : 11 , tm_isdst : 0 ,
134
134
]]>
135
135
</screen >
136
136
</refsect1 >
0 commit comments