reference/intl/intlcalendar/add.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="intlcalendar.add" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>IntlCalendar::add</refname>
...
...
@@ -12,19 +11,19 @@
12
11
<para>
13
12
&style.oop;
14
13
</para>
15
-
<methodsynopsis>
14
+
<methodsynopsis role="IntlCalendar">
16
15
<modifier>public</modifier> <type>bool</type><methodname>IntlCalendar::add</methodname>
17
16
<methodparam><type>int</type><parameter>field</parameter></methodparam>
18
-
<methodparam><type>int</type><parameter>amount</parameter></methodparam>
17
+
<methodparam><type>int</type><parameter>value</parameter></methodparam>
19
18
</methodsynopsis>
20
19
<para>
21
20
&style.procedural;
22
21
</para>
23
22
<methodsynopsis>
24
23
<type>bool</type><methodname>intlcal_add</methodname>
25
-
<methodparam><type>IntlCalendar</type><parameter>cal</parameter></methodparam>
24
+
<methodparam><type>IntlCalendar</type><parameter>calendar</parameter></methodparam>
26
25
<methodparam><type>int</type><parameter>field</parameter></methodparam>
27
-
<methodparam><type>int</type><parameter>amount</parameter></methodparam>
26
+
<methodparam><type>int</type><parameter>value</parameter></methodparam>
28
27
</methodsynopsis>
29
28
<para>
30
29
Add a signed amount to a field. Adding a positive amount allows advances in
...
...
@@ -36,7 +35,7 @@
36
35
of January will result in the 28th (or 29th) of February. Contrary to
37
36
<function>IntlCalendar::roll</function>, when a value wraps around, more
38
37
significant fields may change. For instance, adding a day to the 31st of
39
-
January will result in the 1st of February, not the 1st of Janurary.
38
+
January will result in the 1st of February, not the 1st of January.
40
39
</para>
41
40
</refsect1>
42
41

...
...
@@ -44,11 +43,9 @@
44
43
&reftitle.parameters;
45
44
<variablelist>
46
45
<varlistentry>
47
-
<term><parameter>cal</parameter></term>
46
+
<term><parameter>calendar</parameter></term>
48
47
<listitem>
49
-
<para>
50
-
The IntlCalendar resource.
51
-
</para>
48
+
&intl.parameter.intl-calendar;
52
49
</listitem>
53
50
</varlistentry>
54
51
<varlistentry>
...
...
@@ -58,11 +55,11 @@
58
55
</listitem>
59
56
</varlistentry>
60
57
<varlistentry>
61
-
<term><parameter>amount</parameter></term>
58
+
<term><parameter>value</parameter></term>
62
59
<listitem>
63
60
<para>
64
61
The signed amount to add to the current field. If the amount is positive,
65
-
the instant will be moved forward; if it is negative, the instant wil be
62
+
the instant will be moved forward; if it is negative, the instant will be
66
63
moved into the past. The unit is implicit to the field type. For instance,
67
64
hours for <constant>IntlCalendar::FIELD_HOUR_OF_DAY</constant>.
68
65
</para>
...
...
@@ -113,7 +110,6 @@ echo IntlDateFormatter::formatObject($cal), "\n";
113
110
</refsect1>
114
111

115
112
</refentry>
116
-

117
113
<!-- Keep this comment at the end of the file
118
114
Local variables:
119
115
mode: sgml
120
116