mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
datefmt_set_timezone_id() is removed as of PHP 7.0.0
This commit is contained in:
parent
ce46b05403
commit
c3dad7c6ad
2 changed files with 0 additions and 186 deletions
|
@ -1,184 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Revision$ -->
|
||||
<refentry xml:id="intldateformatter.settimezoneid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<refnamediv>
|
||||
<refname>IntlDateFormatter::setTimeZoneId</refname>
|
||||
<refname>datefmt_set_timezone_id</refname>
|
||||
<refpurpose>Sets the time zone to use</refpurpose>
|
||||
</refnamediv>
|
||||
|
||||
<refsynopsisdiv>
|
||||
<warning>
|
||||
&warn.deprecated.function.5-5-0.removed.7-0-0.alternatives;
|
||||
<simplelist role="alternatives">
|
||||
<member><function>IntlDateFormatter::setTimeZone</function></member>
|
||||
</simplelist>
|
||||
</warning>
|
||||
</refsynopsisdiv>
|
||||
|
||||
<refsect1 role="description">
|
||||
&reftitle.description;
|
||||
<para>
|
||||
&style.oop;
|
||||
</para>
|
||||
<methodsynopsis>
|
||||
<modifier>public</modifier> <type>bool</type><methodname>IntlDateFormatter::setTimeZoneId</methodname>
|
||||
<methodparam><type>string</type><parameter>zone</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
&style.procedural;
|
||||
</para>
|
||||
<methodsynopsis>
|
||||
<type>bool</type><methodname>datefmt_set_timezone_id</methodname>
|
||||
<methodparam><type>IntlDateFormatter</type><parameter>fmt</parameter></methodparam>
|
||||
<methodparam><type>string</type><parameter>zone</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<para>
|
||||
Sets the time zone to use.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="parameters">
|
||||
&reftitle.parameters;
|
||||
<para>
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><parameter>fmt</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The formatter resource.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
<term><parameter>zone</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The time zone ID string of the time zone to use.
|
||||
If &null; or the empty string, the default time zone for the runtime is used.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
|
||||
<refsect1 role="returnvalues">
|
||||
&reftitle.returnvalues;
|
||||
<para>
|
||||
&return.success;
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="changelog">
|
||||
&reftitle.changelog;
|
||||
<para>
|
||||
<informaltable>
|
||||
<tgroup cols="2">
|
||||
<thead>
|
||||
<row>
|
||||
<entry>&Version;</entry>
|
||||
<entry>&Description;</entry>
|
||||
</row>
|
||||
</thead>
|
||||
<tbody>
|
||||
<row>
|
||||
<entry>7.0.0</entry>
|
||||
<entry>
|
||||
This function has been removed.
|
||||
</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>5.5.0</entry>
|
||||
<entry>
|
||||
This function has been deprecated.
|
||||
</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</informaltable>
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<example>
|
||||
<title><function>datefmt_set_timezone_id</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$fmt = datefmt_create(
|
||||
'en_US',
|
||||
IntlDateFormatter::FULL,
|
||||
IntlDateFormatter::FULL,
|
||||
'America/Los_Angeles',
|
||||
IntlDateFormatter::GREGORIAN
|
||||
);
|
||||
echo 'timezone_id of the formatter is : ' . datefmt_get_timezone_id($fmt);
|
||||
datefmt_set_timezone_id($fmt, 'CN');
|
||||
echo 'Now timezone_id of the formatter is : ' . datefmt_get_timezone_id($fmt);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>OO example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$fmt = new IntlDateFormatter(
|
||||
'en_US',
|
||||
IntlDateFormatter::FULL,
|
||||
IntlDateFormatter::FULL,
|
||||
'America/Los_Angeles',
|
||||
IntlDateFormatter::GREGORIAN
|
||||
);
|
||||
echo 'timezone_id of the formatter is : ' . $fmt->getTimezoneId();
|
||||
$fmt->setTimezoneId('CN');
|
||||
echo 'Now timezone_id of the formatter is : ' . $fmt->getTimezoneId();
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
&example.outputs;
|
||||
<screen>
|
||||
<![CDATA[
|
||||
timezone_id of the formatter is : America/Los_Angeles
|
||||
Now timezone_id of the formatter is : CN
|
||||
]]>
|
||||
</screen>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
<simplelist>
|
||||
<member><function>datefmt_get_timezone_id</function></member>
|
||||
<member><function>datefmt_create</function></member>
|
||||
</simplelist>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
|
@ -169,7 +169,6 @@
|
|||
<function name="intldateformatter::gettimezone" from="PHP 5 >= 5.5.0, PHP 7, PECL intl >= 3.0.0"/>
|
||||
<function name="intldateformatter::settimezone" from="PHP 5 >= 5.5.0, PHP 7, PECL intl >= 3.0.0"/>
|
||||
<function name="intldateformatter::gettimezoneid" from="PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0"/>
|
||||
<function name="intldateformatter::settimezoneid" from="PHP 5 >= 5.3.0, PECL intl >= 1.0.0" deprecated="PHP 5 >= 5.5.0"/>
|
||||
<function name="intldateformatter::setpattern" from="PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0"/>
|
||||
<function name="intldateformatter::getpattern" from="PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0"/>
|
||||
<function name="intldateformatter::getlocale" from="PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0"/>
|
||||
|
@ -362,7 +361,6 @@
|
|||
<function name="datefmt_set_calendar" from="PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0"/>
|
||||
<function name="datefmt_get_locale" from="PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0"/>
|
||||
<function name="datefmt_get_timezone_id" from="PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0"/>
|
||||
<function name="datefmt_set_timezone_id" from="PHP 5 >= 5.3.0, PECL intl >= 1.0.0"/>
|
||||
<function name="datefmt_get_pattern" from="PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0"/>
|
||||
<function name="datefmt_set_pattern" from="PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0"/>
|
||||
<function name="datefmt_is_lenient" from="PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0"/>
|
||||
|
|
Loading…
Reference in a new issue