reference/intl/dateformatter/localtime.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -11,19 +11,19 @@
11
11
<para>
12
12
&style.oop;
13
13
</para>
14
-
<methodsynopsis>
15
-
<modifier>public</modifier> <type>array</type><methodname>IntlDateFormatter::localtime</methodname>
16
-
<methodparam><type>string</type><parameter>value</parameter></methodparam>
17
-
<methodparam choice="opt"><type>int</type><parameter role="reference">position</parameter></methodparam>
18
-
</methodsynopsis>
14
+
<methodsynopsis role="IntlDateFormatter">
15
+
<modifier>public</modifier> <type class="union"><type>array</type><type>false</type></type><methodname>IntlDateFormatter::localtime</methodname>
16
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
17
+
<methodparam choice="opt"><type>int</type><parameter role="reference">offset</parameter><initializer>&null;</initializer></methodparam>
18
+
</methodsynopsis>
19
19
<para>
20
20
&style.procedural;
21
21
</para>
22
22
<methodsynopsis>
23
-
<type>array</type><methodname>datefmt_localtime</methodname>
24
-
<methodparam><type>IntlDateFormatter</type><parameter>fmt</parameter></methodparam>
25
-
<methodparam><type>string</type><parameter>value</parameter></methodparam>
26
-
<methodparam choice="opt"><type>int</type><parameter role="reference">position</parameter></methodparam>
23
+
<type class="union"><type>array</type><type>false</type></type><methodname>datefmt_localtime</methodname>
24
+
<methodparam><type>IntlDateFormatter</type><parameter>formatter</parameter></methodparam>
25
+
<methodparam><type>string</type><parameter>string</parameter></methodparam>
26
+
<methodparam choice="opt"><type>int</type><parameter role="reference">offset</parameter><initializer>&null;</initializer></methodparam>
27
27
</methodsynopsis>
28
28
<para>
29
29
Converts string $value to a field-based time value ( an array of various fields), starting at
...
...
@@ -36,7 +36,7 @@ $parse_pos and consuming as much of the input value as possible.
36
36
<para>
37
37
<variablelist>
38
38
<varlistentry>
39
-
<term><parameter>fmt</parameter></term>
39
+
<term><parameter>formatter</parameter></term>
40
40
<listitem>
41
41
<para>
42
42
The formatter resource
...
...
@@ -44,7 +44,7 @@ $parse_pos and consuming as much of the input value as possible.
44
44
</listitem>
45
45
</varlistentry>
46
46
<varlistentry>
47
-
<term><parameter>value</parameter></term>
47
+
<term><parameter>string</parameter></term>
48
48
<listitem>
49
49
<para>
50
50
string to convert to a time
...
...
@@ -52,13 +52,13 @@ $parse_pos and consuming as much of the input value as possible.
52
52
</listitem>
53
53
</varlistentry>
54
54
<varlistentry>
55
-
<term><parameter>position</parameter></term>
55
+
<term><parameter>offset</parameter></term>
56
56
<listitem>
57
57
<para>
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 &gt; strlen($value), the parse fails immediately.
62
62
</para>
63
63
</listitem>
64
64
</varlistentry>
...
...
@@ -70,7 +70,8 @@ $parse_pos and consuming as much of the input value as possible.
70
70
<refsect1 role="returnvalues">
71
71
&reftitle.returnvalues;
72
72
<para>
73
-
Localtime compatible array of integers : contains 24 hour clock value in tm_hour field
73
+
Localtime compatible array of integers : contains 24 hour clock value in tm_hour field,
74
+
&return.falseforfailure;.
74
75
</para>
75
76
</refsect1>
76
77
...
...
@@ -147,7 +148,6 @@ tm_mday : 31 , tm_wday : 4 , tm_yday : 365 , tm_mon : 11 , tm_isdst : 0 ,
147
148
</para>
148
149
</refsect1>
149
150
</refentry>
150
-

151
151
<!-- Keep this comment at the end of the file
152
152
Local variables:
153
153
mode: sgml
154
154