mirror of
https://github.com/php/doc-es.git
synced 2026-03-25 16:02:13 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@334352 c90b9560-bf6c-de11-be94-00142212c4b1
161 lines
4.1 KiB
XML
161 lines
4.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 086dc12715921d77fe42d7cf578b6254c743aa3e Maintainer: chuso Status: ready -->
|
|
|
|
<refentry xml:id="datetimezone.gettransitions" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>DateTimeZone::getTransitions</refname>
|
|
<refname>timezone_transitions_get</refname>
|
|
<refpurpose>Devuelve todas las transiciones para una zona horaria</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<para>&style.oop;</para>
|
|
<methodsynopsis role="oop">
|
|
<modifier>public</modifier> <type>array</type><methodname>DateTimeZone::getTransitions</methodname>
|
|
<methodparam choice="opt"><type>int</type><parameter>timestamp_begin</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>timestamp_end</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>&style.procedural;</para>
|
|
<methodsynopsis role="procedural">
|
|
<type>array</type><methodname>timezone_transitions_get</methodname>
|
|
<methodparam><type>DateTimeZone</type><parameter>object</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>timestamp_begin</parameter></methodparam>
|
|
<methodparam choice="opt"><type>int</type><parameter>timestamp_end</parameter></methodparam>
|
|
</methodsynopsis>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
&date.datetimezone.description;
|
|
<varlistentry>
|
|
<term><parameter>timestamp_begin</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Marca de tiempo de inicio.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>timestamp_end</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Marca de tiempo final.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Deveulve una matriz numérica que contiene una matriz asociativa con todas las
|
|
transiciones si se tuvo éxito &return.falseforfailure;.
|
|
</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>5.3.0</entry>
|
|
<entry>
|
|
Se añadieron los parámetros opcionales <parameter>timestamp_begin</parameter> y
|
|
<parameter>timestamp_end</parameter>.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Un ejemplo de <function>timezone_transitions_get</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$zona_horaria = new DateTimeZone("Europe/London");
|
|
$transiciones = $zona_horaria->getTransitions();
|
|
print_r(array_slice($transiciones, 0, 3));
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
Array
|
|
(
|
|
[0] => Array
|
|
(
|
|
[ts] => -2147483648
|
|
[time] => 1901-12-13T20:45:52+0000
|
|
[offset] => 3600
|
|
[isdst] => 1
|
|
[abbr] => BST
|
|
)
|
|
|
|
[1] => Array
|
|
(
|
|
[ts] => -1691964000
|
|
[time] => 1916-05-21T02:00:00+0000
|
|
[offset] => 3600
|
|
[isdst] => 1
|
|
[abbr] => BST
|
|
)
|
|
|
|
[2] => Array
|
|
(
|
|
[ts] => -1680472800
|
|
[time] => 1916-10-01T02:00:00+0000
|
|
[offset] => 0
|
|
[isdst] =>
|
|
[abbr] => GMT
|
|
)
|
|
|
|
)
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</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
|
|
-->
|