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

4
3
<phpdoc:classref xml:id="class.intlcalendar" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
5
4

6
5
<title>The IntlCalendar class</title>
...
...
@@ -21,254 +20,254 @@
21
20
&reftitle.classsynopsis;
22
21

23
22
<!-- {{{ Synopsis -->
24
-
<classsynopsis>
25
-
<ooclass><classname>IntlCalendar</classname></ooclass>
26
-

27
-
<!-- {{{ Class synopsis -->
28
-
<classsynopsisinfo>
29
-
<ooclass>
30
-
<classname>IntlCalendar</classname>
31
-
</ooclass>
32
-
</classsynopsisinfo>
33
-
<!-- }}} -->
34
-
<classsynopsisinfo role="comment">Constants</classsynopsisinfo>
23
+
<classsynopsis class="class">
24
+
<ooclass>
25
+
<classname>IntlCalendar</classname>
26
+
</ooclass>
27
+

28
+
<classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
35
29
<fieldsynopsis>
30
+
<modifier>public</modifier>
36
31
<modifier>const</modifier>
37
-
<type>integer</type>
32
+
<type>int</type>
38
33
<varname linkend="intlcalendar.constants.field-era">IntlCalendar::FIELD_ERA</varname>
39
-
<initializer>0</initializer>
40
34
</fieldsynopsis>
41
35
<fieldsynopsis>
36
+
<modifier>public</modifier>
42
37
<modifier>const</modifier>
43
-
<type>integer</type>
38
+
<type>int</type>
44
39
<varname linkend="intlcalendar.constants.field-year">IntlCalendar::FIELD_YEAR</varname>
45
-
<initializer>1</initializer>
46
40
</fieldsynopsis>
47
41
<fieldsynopsis>
42
+
<modifier>public</modifier>
48
43
<modifier>const</modifier>
49
-
<type>integer</type>
44
+
<type>int</type>
50
45
<varname linkend="intlcalendar.constants.field-month">IntlCalendar::FIELD_MONTH</varname>
51
-
<initializer>2</initializer>
52
46
</fieldsynopsis>
53
47
<fieldsynopsis>
48
+
<modifier>public</modifier>
54
49
<modifier>const</modifier>
55
-
<type>integer</type>
50
+
<type>int</type>
56
51
<varname linkend="intlcalendar.constants.field-week-of-year">IntlCalendar::FIELD_WEEK_OF_YEAR</varname>
57
-
<initializer>3</initializer>
58
52
</fieldsynopsis>
59
53
<fieldsynopsis>
54
+
<modifier>public</modifier>
60
55
<modifier>const</modifier>
61
-
<type>integer</type>
56
+
<type>int</type>
62
57
<varname linkend="intlcalendar.constants.field-week-of-month">IntlCalendar::FIELD_WEEK_OF_MONTH</varname>
63
-
<initializer>4</initializer>
64
58
</fieldsynopsis>
65
59
<fieldsynopsis>
60
+
<modifier>public</modifier>
66
61
<modifier>const</modifier>
67
-
<type>integer</type>
62
+
<type>int</type>
68
63
<varname linkend="intlcalendar.constants.field-date">IntlCalendar::FIELD_DATE</varname>
69
-
<initializer>5</initializer>
70
64
</fieldsynopsis>
71
65
<fieldsynopsis>
66
+
<modifier>public</modifier>
72
67
<modifier>const</modifier>
73
-
<type>integer</type>
68
+
<type>int</type>
74
69
<varname linkend="intlcalendar.constants.field-day-of-year">IntlCalendar::FIELD_DAY_OF_YEAR</varname>
75
-
<initializer>6</initializer>
76
70
</fieldsynopsis>
77
71
<fieldsynopsis>
72
+
<modifier>public</modifier>
78
73
<modifier>const</modifier>
79
-
<type>integer</type>
74
+
<type>int</type>
80
75
<varname linkend="intlcalendar.constants.field-day-of-week">IntlCalendar::FIELD_DAY_OF_WEEK</varname>
81
-
<initializer>7</initializer>
82
76
</fieldsynopsis>
83
77
<fieldsynopsis>
78
+
<modifier>public</modifier>
84
79
<modifier>const</modifier>
85
-
<type>integer</type>
80
+
<type>int</type>
86
81
<varname linkend="intlcalendar.constants.field-day-of-week-in-month">IntlCalendar::FIELD_DAY_OF_WEEK_IN_MONTH</varname>
87
-
<initializer>8</initializer>
88
82
</fieldsynopsis>
89
83
<fieldsynopsis>
84
+
<modifier>public</modifier>
90
85
<modifier>const</modifier>
91
-
<type>integer</type>
86
+
<type>int</type>
92
87
<varname linkend="intlcalendar.constants.field-am-pm">IntlCalendar::FIELD_AM_PM</varname>
93
-
<initializer>9</initializer>
94
88
</fieldsynopsis>
95
89
<fieldsynopsis>
90
+
<modifier>public</modifier>
96
91
<modifier>const</modifier>
97
-
<type>integer</type>
92
+
<type>int</type>
98
93
<varname linkend="intlcalendar.constants.field-hour">IntlCalendar::FIELD_HOUR</varname>
99
-
<initializer>10</initializer>
100
94
</fieldsynopsis>
101
95
<fieldsynopsis>
96
+
<modifier>public</modifier>
102
97
<modifier>const</modifier>
103
-
<type>integer</type>
98
+
<type>int</type>
104
99
<varname linkend="intlcalendar.constants.field-hour-of-day">IntlCalendar::FIELD_HOUR_OF_DAY</varname>
105
-
<initializer>11</initializer>
106
100
</fieldsynopsis>
107
101
<fieldsynopsis>
102
+
<modifier>public</modifier>
108
103
<modifier>const</modifier>
109
-
<type>integer</type>
104
+
<type>int</type>
110
105
<varname linkend="intlcalendar.constants.field-minute">IntlCalendar::FIELD_MINUTE</varname>
111
-
<initializer>12</initializer>
112
106
</fieldsynopsis>
113
107
<fieldsynopsis>
108
+
<modifier>public</modifier>
114
109
<modifier>const</modifier>
115
-
<type>integer</type>
110
+
<type>int</type>
116
111
<varname linkend="intlcalendar.constants.field-second">IntlCalendar::FIELD_SECOND</varname>
117
-
<initializer>13</initializer>
118
112
</fieldsynopsis>
119
113
<fieldsynopsis>
114
+
<modifier>public</modifier>
120
115
<modifier>const</modifier>
121
-
<type>integer</type>
116
+
<type>int</type>
122
117
<varname linkend="intlcalendar.constants.field-millisecond">IntlCalendar::FIELD_MILLISECOND</varname>
123
-
<initializer>14</initializer>
124
118
</fieldsynopsis>
125
119
<fieldsynopsis>
120
+
<modifier>public</modifier>
126
121
<modifier>const</modifier>
127
-
<type>integer</type>
122
+
<type>int</type>
128
123
<varname linkend="intlcalendar.constants.field-zone-offset">IntlCalendar::FIELD_ZONE_OFFSET</varname>
129
-
<initializer>15</initializer>
130
124
</fieldsynopsis>
131
125
<fieldsynopsis>
126
+
<modifier>public</modifier>
132
127
<modifier>const</modifier>
133
-
<type>integer</type>
128
+
<type>int</type>
134
129
<varname linkend="intlcalendar.constants.field-dst-offset">IntlCalendar::FIELD_DST_OFFSET</varname>
135
-
<initializer>16</initializer>
136
130
</fieldsynopsis>
137
131
<fieldsynopsis>
132
+
<modifier>public</modifier>
138
133
<modifier>const</modifier>
139
-
<type>integer</type>
134
+
<type>int</type>
140
135
<varname linkend="intlcalendar.constants.field-year-woy">IntlCalendar::FIELD_YEAR_WOY</varname>
141
-
<initializer>17</initializer>
142
136
</fieldsynopsis>
143
137
<fieldsynopsis>
138
+
<modifier>public</modifier>
144
139
<modifier>const</modifier>
145
-
<type>integer</type>
140
+
<type>int</type>
146
141
<varname linkend="intlcalendar.constants.field-dow-local">IntlCalendar::FIELD_DOW_LOCAL</varname>
147
-
<initializer>18</initializer>
148
142
</fieldsynopsis>
149
143
<fieldsynopsis>
144
+
<modifier>public</modifier>
150
145
<modifier>const</modifier>
151
-
<type>integer</type>
146
+
<type>int</type>
152
147
<varname linkend="intlcalendar.constants.field-extended-year">IntlCalendar::FIELD_EXTENDED_YEAR</varname>
153
-
<initializer>19</initializer>
154
148
</fieldsynopsis>
155
149
<fieldsynopsis>
150
+
<modifier>public</modifier>
156
151
<modifier>const</modifier>
157
-
<type>integer</type>
152
+
<type>int</type>
158
153
<varname linkend="intlcalendar.constants.field-julian-day">IntlCalendar::FIELD_JULIAN_DAY</varname>
159
-
<initializer>20</initializer>
160
154
</fieldsynopsis>
161
155
<fieldsynopsis>
156
+
<modifier>public</modifier>
162
157
<modifier>const</modifier>
163
-
<type>integer</type>
158
+
<type>int</type>
164
159
<varname linkend="intlcalendar.constants.field-milliseconds-in-day">IntlCalendar::FIELD_MILLISECONDS_IN_DAY</varname>
165
-
<initializer>21</initializer>
166
160
</fieldsynopsis>
167
161
<fieldsynopsis>
162
+
<modifier>public</modifier>
168
163
<modifier>const</modifier>
169
-
<type>integer</type>
164
+
<type>int</type>
170
165
<varname linkend="intlcalendar.constants.field-is-leap-month">IntlCalendar::FIELD_IS_LEAP_MONTH</varname>
171
-
<initializer>22</initializer>
172
166
</fieldsynopsis>
173
167
<fieldsynopsis>
168
+
<modifier>public</modifier>
174
169
<modifier>const</modifier>
175
-
<type>integer</type>
176
-
<varname linkend="intlcalendar.constants.field-field-count-">IntlCalendar::FIELD_FIELD_COUNT </varname>
177
-
<initializer>23</initializer>
170
+
<type>int</type>
171
+
<varname linkend="intlcalendar.constants.field-field-count">IntlCalendar::FIELD_FIELD_COUNT</varname>
178
172
</fieldsynopsis>
179
173
<fieldsynopsis>
174
+
<modifier>public</modifier>
180
175
<modifier>const</modifier>
181
-
<type>integer</type>
176
+
<type>int</type>
182
177
<varname linkend="intlcalendar.constants.field-day-of-month">IntlCalendar::FIELD_DAY_OF_MONTH</varname>
183
-
<initializer>5</initializer>
184
178
</fieldsynopsis>
185
179
<fieldsynopsis>
180
+
<modifier>public</modifier>
186
181
<modifier>const</modifier>
187
-
<type>integer</type>
182
+
<type>int</type>
188
183
<varname linkend="intlcalendar.constants.dow-sunday">IntlCalendar::DOW_SUNDAY</varname>
189
-
<initializer>1</initializer>
190
184
</fieldsynopsis>
191
185
<fieldsynopsis>
186
+
<modifier>public</modifier>
192
187
<modifier>const</modifier>
193
-
<type>integer</type>
188
+
<type>int</type>
194
189
<varname linkend="intlcalendar.constants.dow-monday">IntlCalendar::DOW_MONDAY</varname>
195
-
<initializer>2</initializer>
196
190
</fieldsynopsis>
197
191
<fieldsynopsis>
192
+
<modifier>public</modifier>
198
193
<modifier>const</modifier>
199
-
<type>integer</type>
194
+
<type>int</type>
200
195
<varname linkend="intlcalendar.constants.dow-tuesday">IntlCalendar::DOW_TUESDAY</varname>
201
-
<initializer>3</initializer>
202
196
</fieldsynopsis>
203
197
<fieldsynopsis>
198
+
<modifier>public</modifier>
204
199
<modifier>const</modifier>
205
-
<type>integer</type>
200
+
<type>int</type>
206
201
<varname linkend="intlcalendar.constants.dow-wednesday">IntlCalendar::DOW_WEDNESDAY</varname>
207
-
<initializer>4</initializer>
208
202
</fieldsynopsis>
209
203
<fieldsynopsis>
204
+
<modifier>public</modifier>
210
205
<modifier>const</modifier>
211
-
<type>integer</type>
206
+
<type>int</type>
212
207
<varname linkend="intlcalendar.constants.dow-thursday">IntlCalendar::DOW_THURSDAY</varname>
213
-
<initializer>5</initializer>
214
208
</fieldsynopsis>
215
209
<fieldsynopsis>
210
+
<modifier>public</modifier>
216
211
<modifier>const</modifier>
217
-
<type>integer</type>
212
+
<type>int</type>
218
213
<varname linkend="intlcalendar.constants.dow-friday">IntlCalendar::DOW_FRIDAY</varname>
219
-
<initializer>6</initializer>
220
214
</fieldsynopsis>
221
215
<fieldsynopsis>
216
+
<modifier>public</modifier>
222
217
<modifier>const</modifier>
223
-
<type>integer</type>
218
+
<type>int</type>
224
219
<varname linkend="intlcalendar.constants.dow-saturday">IntlCalendar::DOW_SATURDAY</varname>
225
-
<initializer>7</initializer>
226
220
</fieldsynopsis>
227
221
<fieldsynopsis>
222
+
<modifier>public</modifier>
228
223
<modifier>const</modifier>
229
-
<type>integer</type>
224
+
<type>int</type>
230
225
<varname linkend="intlcalendar.constants.dow-type-weekday">IntlCalendar::DOW_TYPE_WEEKDAY</varname>
231
-
<initializer>0</initializer>
232
226
</fieldsynopsis>
233
227
<fieldsynopsis>
228
+
<modifier>public</modifier>
234
229
<modifier>const</modifier>
235
-
<type>integer</type>
230
+
<type>int</type>
236
231
<varname linkend="intlcalendar.constants.dow-type-weekend">IntlCalendar::DOW_TYPE_WEEKEND</varname>
237
-
<initializer>1</initializer>
238
232
</fieldsynopsis>
239
233
<fieldsynopsis>
234
+
<modifier>public</modifier>
240
235
<modifier>const</modifier>
241
-
<type>integer</type>
236
+
<type>int</type>
242
237
<varname linkend="intlcalendar.constants.dow-type-weekend-offset">IntlCalendar::DOW_TYPE_WEEKEND_OFFSET</varname>
243
-
<initializer>2</initializer>
244
238
</fieldsynopsis>
245
239
<fieldsynopsis>
240
+
<modifier>public</modifier>
246
241
<modifier>const</modifier>
247
-
<type>integer</type>
242
+
<type>int</type>
248
243
<varname linkend="intlcalendar.constants.dow-type-weekend-cease">IntlCalendar::DOW_TYPE_WEEKEND_CEASE</varname>
249
-
<initializer>3</initializer>
250
244
</fieldsynopsis>
251
245
<fieldsynopsis>
246
+
<modifier>public</modifier>
252
247
<modifier>const</modifier>
253
-
<type>integer</type>
248
+
<type>int</type>
254
249
<varname linkend="intlcalendar.constants.walltime-first">IntlCalendar::WALLTIME_FIRST</varname>
255
-
<initializer>1</initializer>
256
250
</fieldsynopsis>
257
251
<fieldsynopsis>
252
+
<modifier>public</modifier>
258
253
<modifier>const</modifier>
259
-
<type>integer</type>
254
+
<type>int</type>
260
255
<varname linkend="intlcalendar.constants.walltime-last">IntlCalendar::WALLTIME_LAST</varname>
261
-
<initializer>0</initializer>
262
256
</fieldsynopsis>
263
257
<fieldsynopsis>
258
+
<modifier>public</modifier>
264
259
<modifier>const</modifier>
265
-
<type>integer</type>
260
+
<type>int</type>
266
261
<varname linkend="intlcalendar.constants.walltime-next-valid">IntlCalendar::WALLTIME_NEXT_VALID</varname>
267
-
<initializer>2</initializer>
268
262
</fieldsynopsis>
269
263

270
264
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
271
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intlcalendar')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" />
265
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intlcalendar')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='IntlCalendar'])">
266
+
<xi:fallback/>
267
+
</xi:include>
268
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.intlcalendar')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='IntlCalendar'])">
269
+
<xi:fallback/>
270
+
</xi:include>
272
271
</classsynopsis>
273
272
<!-- }}} -->
274
273

...
...
@@ -308,7 +307,7 @@
308
307
<listitem>
309
308
<para>
310
309
Calendar field for the month. The month sequence is zero-based, so
311
-
Janurary (here used to signify the first month of the calendar; this
310
+
January (here used to signify the first month of the calendar; this
312
311
may be called another name, such as Muharram in the Islamic calendar)
313
312
is represented by <literal>0</literal>, February by
314
313
<literal>1</literal>, …, December by <literal>11</literal> and, for
...
...
@@ -323,10 +322,8 @@
323
322
<listitem>
324
323
<para>
325
324
Calendar field for the number of the week of the year. This depends on
326
-
which day of the week is <link
327
-
linkend="intlcalendar.getfirstdayofweek">deemed to start the
328
-
week</link> and the <link
329
-
linkend="intlcalendar.getminimaldaysinfirstweek">minimal number of days
325
+
which day of the week is <link linkend="intlcalendar.getfirstdayofweek">deemed to start the
326
+
week</link> and the <link linkend="intlcalendar.getminimaldaysinfirstweek">minimal number of days
330
327
in a week</link>.
331
328
</para>
332
329
</listitem>
...
...
@@ -337,10 +334,8 @@
337
334
<listitem>
338
335
<para>
339
336
Calendar field for the number of the week of the month. This depends on
340
-
which day of the week is <link
341
-
linkend="intlcalendar.getfirstdayofweek">deemed to start the
342
-
week</link> and the <link
343
-
linkend="intlcalendar.getminimaldaysinfirstweek">minimal number of days
337
+
which day of the week is <link linkend="intlcalendar.getfirstdayofweek">deemed to start the
338
+
week</link> and the <link linkend="intlcalendar.getminimaldaysinfirstweek">minimal number of days
344
339
in a week</link>.
345
340
</para>
346
341
</listitem>
...
...
@@ -362,8 +357,8 @@
362
357
<listitem>
363
358
<para>
364
359
Calendar field for the day of the year. For the Gregorian calendar,
365
-
starts with <constant>1</constant> and ends with
366
-
<constant>365</constant> or <constant>366</constant>.
360
+
starts with <literal>1</literal> and ends with
361
+
<literal>365</literal> or <literal>366</literal>.
367
362
</para>
368
363
</listitem>
369
364
</varlistentry>
...
...
@@ -373,8 +368,7 @@
373
368
<listitem>
374
369
<para>
375
370
Calendar field for the day of the week. Its values start with
376
-
<literal>1</literal> (Sunday, see <link
377
-
linkend="intlcalendar.constants.dow-sunday"><constant>IntlCalendar::DOW_SUNDAY</constant></link>
371
+
<literal>1</literal> (Sunday, see <link linkend="intlcalendar.constants.dow-sunday"><constant>IntlCalendar::DOW_SUNDAY</constant></link>
378
372
and subsequent constants) and the last valid value is 7 (Saturday).
379
373
</para>
380
374
</listitem>
...
...
@@ -401,10 +395,8 @@
401
395
and so on.
402
396
</para>
403
397
<para>
404
-
Unlike <link
405
-
linkend="intlcalendar.constants.field-week-of-month"><constant>IntlCalendar::FIELD_WEEK_OF_MONTH</constant></link>
406
-
and <link
407
-
linkend="intlcalendar.constants.field-week-of-year"><constant>IntlCalendar::FIELD_WEEK_OF_YEAR</constant></link>,
398
+
Unlike <link linkend="intlcalendar.constants.field-week-of-month"><constant>IntlCalendar::FIELD_WEEK_OF_MONTH</constant></link>
399
+
and <link linkend="intlcalendar.constants.field-week-of-year"><constant>IntlCalendar::FIELD_WEEK_OF_YEAR</constant></link>,
408
400
this value does not depend on
409
401
<function>IntlCalendar::getFirstDayOfWeek</function> or on
410
402
<function>IntlCalendar::getMinimalDaysInFirstWeek</function>. The first
...
...
@@ -498,8 +490,7 @@
498
490
<term><constant>IntlCalendar::FIELD_YEAR_WOY</constant></term>
499
491
<listitem>
500
492
<para>
501
-
Calendar field representing the year for <link
502
-
linkend="intlcalendar.constants.field-week-of-year">week of year</link>
493
+
Calendar field representing the year for <link linkend="intlcalendar.constants.field-week-of-year">week of year</link>
503
494
purposes.
504
495
</para>
505
496
</listitem>
...
...
@@ -510,7 +501,7 @@
510
501
<listitem>
511
502
<para>
512
503
Calendar field for the localized day of the week. This is a value
513
-
betwen <literal>1</literal> and <literal>7</literal>,
504
+
between <literal>1</literal> and <literal>7</literal>,
514
505
<literal>1</literal> being used for the day of the week that matches
515
506
the value returned by
516
507
<function>IntlCalendar::getFirstDayOfWeek</function>.
...
...
@@ -552,7 +543,7 @@
552
543
<constant>IntlCalendar::FIELD_SECOND</constant> and
553
544
<constant>IntlCalendar::FIELD_MILLISECOND</constant>. Range is from the
554
545
<literal>0</literal> to <literal>24 * 3600 * 1000 - 1</literal>. It is
555
-
not the amount of milliseconds ellapsed in the day since on DST
546
+
not the amount of milliseconds elapsed in the day since on DST
556
547
transitions it will have discontinuities analog to those of the wall
557
548
time.
558
549
</para>
...
...
@@ -569,7 +560,7 @@
569
560
</listitem>
570
561
</varlistentry>
571
562

572
-
<varlistentry xml:id="intlcalendar.constants.field-field-count-">
563
+
<varlistentry xml:id="intlcalendar.constants.field-field-count">
573
564
<term><constant>IntlCalendar::FIELD_FIELD_COUNT</constant></term>
574
565
<listitem>
575
566
<para>
...
...
@@ -582,8 +573,7 @@
582
573
<term><constant>IntlCalendar::FIELD_DAY_OF_MONTH</constant></term>
583
574
<listitem>
584
575
<para>
585
-
Alias for <link
586
-
linkend="intlcalendar.constants.field-date"><constant>IntlCalendar::FIELD_DATE</constant></link>.
576
+
Alias for <link linkend="intlcalendar.constants.field-date"><constant>IntlCalendar::FIELD_DATE</constant></link>.
587
577
</para>
588
578
</listitem>
589
579
</varlistentry>
...
...
@@ -726,7 +716,6 @@
726
716
&reference.intl.entities.intlcalendar;
727
717

728
718
</phpdoc:classref>
729
-

730
719
<!-- Keep this comment at the end of the file
731
720
Local variables:
732
721
mode: sgml
733
722