reference/datetime/functions/timezone-version-get.xml
b7ac6fa547cef108d56729fa322677eec4882285
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xml:id="function.timezone-version-get" xmlns="http://docbook.org/ns/docbook">
3
+
<refentry xml:id="function.timezone-version-get" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
4
4
<refnamediv>
5
5
<refname>timezone_version_get</refname>
6
6
<refpurpose>
...
...
@@ -18,10 +18,29 @@
18
18
</para>
19
19
</refsect1>
20
20

21
+
<refsect1 role="parameters">
22
+
&reftitle.parameters;
23
+
&no.function.parameters;
24
+
</refsect1>
25
+

21
26
<refsect1 role="returnvalues">
22
27
&reftitle.returnvalues;
23
28
<para>
24
-
Returns a <type>string</type>.
29
+
Returns a <type>string</type> in the format
30
+
<literal>YYYY.increment</literal>, such as <literal>2022.2</literal>.
31
+
</para>
32
+
<para>
33
+
If you have a timezone database version that is old (for example, it
34
+
doesn't show the current year), then you can update the timezone information
35
+
by either upgrading your PHP version, or installing the <link
36
+
xlink:href="&url.pecl.package;timezonedb">timezonedb</link> PECL package.
37
+
</para>
38
+
<para>
39
+
Some Linux distributions patch PHP's date/time support to use an
40
+
alternative source for timezone information. In which case this function
41
+
will return <literal>0.system</literal>. You are encouraged to install the
42
+
<link xlink:href="&url.pecl.package;timezonedb">timezonedb</link> PECL
43
+
package in that case as well.
25
44
</para>
26
45
</refsect1>
27
46

...
...
@@ -40,7 +59,7 @@ echo timezone_version_get();
40
59
&example.outputs.similar;
41
60
<screen>
42
61
<![CDATA[
43
-
2009.7
62
+
2022.2
44
63
]]>
45
64
</screen>
46
65
</example>
47
66