reference/datetime/datetimeinterface/getoffset.xml
e057f1f552548a68030830e96ae1bdf313b1794e
...
...
@@ -1,11 +1,10 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="datetime.getoffset" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
-
<refname>DateTime::getOffset</refname>
7
-
<refname>DateTimeImmutable::getOffset</refname>
8
5
<refname>DateTimeInterface::getOffset</refname>
6
+
<refname>DateTimeImmutable::getOffset</refname>
7
+
<refname>DateTime::getOffset</refname>
9
8
<refname>date_offset_get</refname>
10
9
<refpurpose>Returns the timezone offset</refpurpose>
11
10
</refnamediv>
...
...
@@ -13,20 +12,20 @@
13
12
<refsect1 role="description">
14
13
&reftitle.description;
15
14
<para>&style.oop;</para>
16
-
<methodsynopsis role="oop">
17
-
<modifier>public</modifier> <type>int</type><methodname>DateTime::getOffset</methodname>
18
-
<void />
15
+
<methodsynopsis role="DateTimeInterface">
16
+
<modifier>public</modifier> <type>int</type><methodname>DateTimeInterface::getOffset</methodname>
17
+
<void/>
19
18
</methodsynopsis>
20
19
<methodsynopsis role="DateTimeImmutable">
21
20
<modifier>public</modifier> <type>int</type><methodname>DateTimeImmutable::getOffset</methodname>
22
-
<void />
21
+
<void/>
23
22
</methodsynopsis>
24
-
<methodsynopsis role="DateTimeInterface">
25
-
<modifier>public</modifier> <type>int</type><methodname>DateTimeInterface::getOffset</methodname>
26
-
<void />
23
+
<methodsynopsis role="DateTime">
24
+
<modifier>public</modifier> <type>int</type><methodname>DateTime::getOffset</methodname>
25
+
<void/>
27
26
</methodsynopsis>
28
27
<para>&style.procedural;</para>
29
-
<methodsynopsis role="procedural">
28
+
<methodsynopsis>
30
29
<type>int</type><methodname>date_offset_get</methodname>
31
30
<methodparam><type>DateTimeInterface</type><parameter>object</parameter></methodparam>
32
31
</methodsynopsis>
...
...
@@ -45,8 +44,7 @@
45
44
<refsect1 role="returnvalues">
46
45
&reftitle.returnvalues;
47
46
<para>
48
-
Returns the timezone offset in seconds from UTC on success
49
-
&return.falseforfailure;.
47
+
Returns the timezone offset in seconds from UTC on success.
50
48
</para>
51
49
</refsect1>
52
50

...
...
@@ -58,8 +56,8 @@
58
56
<programlisting role="php">
59
57
<![CDATA[
60
58
<?php
61
-
$winter = new DateTime('2010-12-21', new DateTimeZone('America/New_York'));
62
-
$summer = new DateTime('2008-06-21', new DateTimeZone('America/New_York'));
59
+
$winter = new DateTimeImmutable('2010-12-21', new DateTimeZone('America/New_York'));
60
+
$summer = new DateTimeImmutable('2008-06-21', new DateTimeZone('America/New_York'));
63
61

64
62
echo $winter->getOffset() . "\n";
65
63
echo $summer->getOffset() . "\n";
...
...
@@ -92,7 +90,6 @@ echo date_offset_get($summer) . "\n";
92
90
</refsect1>
93
91

94
92
</refentry>
95
-

96
93
<!-- Keep this comment at the end of the file
97
94
Local variables:
98
95
mode: sgml
99
96