Files
archived-doc-pt-br/reference/datetime/datetime.xml
Leonardo Lara Rodrigues 909023c945 Minor corrections to pull request #341 and initial translation of features/gc and features/dtrace (#343)
* Minor corrections to pull request #341

* Initial translation of features/gc and features/dtrace

* Update to language-snippets.ent

* Update to language/errors.xml

* Updates to language/predefined/attributes/*

* Updates to outdated language/predefined/variables/*

* Update to outdated files in install/windows/

* New translation of missing file security/sessions.xml

* New translation of missing files in language/context

* Update datetime.xml

* New translation of missing files in datetime/

---------

Co-authored-by: LEONARDO LARA RODRIGUES <leonardolara@github.com>
2023-11-13 14:14:06 -03:00

127 lines
4.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: fabioluciano Status: ready --><!-- CREDITS: fabioluciano, leonardolara -->
<phpdoc:classref xml:id="class.datetime" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>A classe DateTime</title>
<titleabbrev>DateTime</titleabbrev>
<partintro>
<!-- {{{ DateTime intro -->
<section xml:id="datetime.intro">
&reftitle.intro;
<para>
Representação de data e hora.
</para>
<para>
Esta classe se comporta da mesma maneira que a classe <classname>DateTimeImmutable</classname>,
exceto pelo fato de que os objetos se alteram quando métodos de modificação como
<function>DateTime::modify</function> são chamados.
</para>
<warning>
<para>
Chamar métodos em objetos da classe <classname>DateTime</classname>
irá alterar a informação encapsulada nestes objetos. Se você quiser
evitar isso, terá que usar o operador <literal>clone</literal> para
criar um novo objeto. É recomendado usar <classname>DateTimeImmutable</classname>
no lugar de <classname>DateTime</classname> para obter este
comportamento por padrão.
</para>
</warning>
</section>
<!-- }}} -->
<section xml:id="datetime.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<classname>DateTime</classname>
</ooclass>
<oointerface>
<modifier>implements</modifier>
<interfacename>DateTimeInterface</interfacename>
</oointerface>
<classsynopsisinfo role="comment">&InheritedConstants;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.datetimeinterface')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Constants;']]))">
<xi:fallback/>
</xi:include>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.datetime')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='DateTime'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.datetime')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='DateTime'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.datetimeinterface')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='DateTime'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->
</section>
<section role="changelog" xml:id="datetime.changelog"><!-- {{{ -->
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>7.2.0</entry>
<entry>
As constantes da classe <classname>DateTime</classname> são agora definidas
na classe <classname>DateTimeInterface</classname>.
</entry>
</row>
<row>
<entry>7.1.0</entry>
<entry>
O construtor da classe <classname>DateTime</classname> agora inclui os
microssegundos atuais no valor construído. Antes disso, ele
sempre inicializava os microssegundos em <literal>0</literal>.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</section><!-- }}} -->
</partintro>
&reference.datetime.entities.datetime;
</phpdoc:classref>
<!-- 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
-->