Files
php-doc-ru/reference/datetime/datetimezone/getname.xml
2022-12-13 20:53:22 +03:00

75 lines
2.6 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 02ff7fef5b34cf8f5395180d9d39fb64d9398d00 Maintainer: das Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="datetimezone.getname" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>DateTimeZone::getName</refname>
<refname>timezone_name_get</refname>
<refpurpose>Возвращает имя часового пояса</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>&style.oop;</para>
<methodsynopsis role="DateTimeZone">
<modifier>public</modifier> <type>string</type><methodname>DateTimeZone::getName</methodname>
<void/>
</methodsynopsis>
<para>&style.procedural;</para>
<methodsynopsis>
<type>string</type><methodname>timezone_name_get</methodname>
<methodparam><type>DateTimeZone</type><parameter>object</parameter></methodparam>
</methodsynopsis>
<para>
Возвращает имя часового пояса.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>object</parameter></term>
<listitem>
<para>
Объект класса <classname>DateTimeZone</classname>, для которого нужно получить имя.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
В зависимости от типа зоны, смещения UTC (тип 1), аббревиатуры часового пояса (тип 2) и идентификаторов часовых поясов,
опубликованных в базе данных часовых поясов IANA (тип 3),
строка дескриптора для создания нового объекта <classname>DateTimeZone</classname>
с тем же смещением и/или правилами.
Например, <literal>02:00</literal>, <literal>CEST</literal> или одно из имён часовых поясов
в <link linkend="timezones">списке часовых поясов</link>.
</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
-->