reference/intl/intlcalendar/isweekend.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.isweekend" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>IntlCalendar::isWeekend</refname>
...
...
@@ -12,17 +11,17 @@
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::isWeekend</methodname>
17
-
<methodparam choice="opt"><type>float</type><parameter>date</parameter><initializer>NULL</initializer></methodparam>
16
+
<methodparam choice="opt"><type class="union"><type>float</type><type>null</type></type><parameter>timestamp</parameter><initializer>&null;</initializer></methodparam>
18
17
</methodsynopsis>
19
18
<para>
20
19
&style.procedural;
21
20
</para>
22
21
<methodsynopsis>
23
22
<type>bool</type><methodname>intlcal_is_weekend</methodname>
24
-
<methodparam><type>IntlCalendar</type><parameter>cal</parameter></methodparam>
25
-
<methodparam choice="opt"><type>float</type><parameter>date</parameter><initializer>NULL</initializer></methodparam>
23
+
<methodparam><type>IntlCalendar</type><parameter>calendar</parameter></methodparam>
24
+
<methodparam choice="opt"><type class="union"><type>float</type><type>null</type></type><parameter>timestamp</parameter><initializer>&null;</initializer></methodparam>
26
25
</methodsynopsis>
27
26
<para>
28
27
Returns whether either the obejctʼs current time or the provided timestamp
...
...
@@ -37,15 +36,13 @@
37
36
&reftitle.parameters;
38
37
<variablelist>
39
38
<varlistentry>
40
-
<term><parameter>cal</parameter></term>
39
+
<term><parameter>calendar</parameter></term>
41
40
<listitem>
42
-
<para>
43
-
The IntlCalendar resource.
44
-
</para>
41
+
&intl.parameter.intl-calendar;
45
42
</listitem>
46
43
</varlistentry>
47
44
<varlistentry>
48
-
<term><parameter>date</parameter></term>
45
+
<term><parameter>timestamp</parameter></term>
49
46
<listitem>
50
47
<para>
51
48
An optional timestamp representing the number of milliseconds since the
...
...
@@ -63,12 +60,7 @@
63
60
A <type>bool</type> indicating whether the given or this objectʼs time occurs
64
61
in a weekend.
65
62
</para>
66
-
<para>
67
-
The value &false; may also be returned on failure, for instance after giving
68
-
a date out of bounds on non-lenient mode; use <link
69
-
linkend="ini.intl.use-exceptions">exceptions</link> or query
70
-
<function>intl_get_error_code</function> to disambiguate.
71
-
</para>
63
+
&intl.error.intl-calendar;
72
64
</refsect1>
73
65

74
66

...
...
@@ -108,7 +100,6 @@ var_dump($cal->isWeekend()); // false, Sunday not in weekend in this calendar
108
100
</refsect1>
109
101

110
102
</refentry>
111
-

112
103
<!-- Keep this comment at the end of the file
113
104
Local variables:
114
105
mode: sgml
115
106