2009-01-06 14:55:00 +00:00
<?xml version="1.0" encoding="utf-8"?>
2009-07-11 06:46:52 +00:00
<!-- $Revision$ -->
2009-01-06 14:55:00 +00:00
<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 > The DateTime class</title>
<titleabbrev > DateTime</titleabbrev>
<partintro >
<!-- {{{ DateTime intro -->
<section xml:id= "datetime.intro" >
&reftitle.intro;
<para >
Representation of date and time.
</para>
</section>
<!-- }}} -->
<section xml:id= "datetime.synopsis" >
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis >
<ooclass > <classname > DateTime</classname> </ooclass>
<!-- {{{ Class synopsis -->
<classsynopsisinfo >
<ooclass >
<classname > DateTime</classname>
</ooclass>
2013-05-17 06:06:10 +00:00
<oointerface >
<interfacename > DateTimeInterface</interfacename>
</oointerface>
2009-01-06 14:55:00 +00:00
</classsynopsisinfo>
<!-- }}} -->
2018-09-20 16:24:27 +00:00
<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>
2009-12-29 09:42:00 +00:00
<classsynopsisinfo role= "comment" > &Methods; </classsynopsisinfo>
2010-05-18 16:52:10 +00:00
<xi:include xpointer= "xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.datetime')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])" >
<xi:fallback />
</xi:include>
2010-05-24 12:51:39 +00:00
<!--
2010-05-18 16:52:10 +00:00
<xi:include xpointer= "xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.datetime')/db:refentry/db:refsect1[@role='description']/descendant::db:destructorsynopsis[not(@role='procedural')])" >
<xi:fallback />
</xi:include>
2010-05-24 12:51:39 +00:00
-->
2010-05-18 16:52:10 +00:00
<xi:include xpointer= "xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.datetime')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" >
<xi:fallback />
</xi:include>
2013-05-17 06:06:10 +00:00
2013-05-17 18:17:21 +00:00
<xi:include xpointer= "xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.datetimeinterface')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='oop'])" />
2010-05-18 16:52:10 +00:00
2009-01-06 14:55:00 +00:00
</classsynopsis>
<!-- }}} -->
</section>
2012-02-12 16:06:16 +00:00
<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 >
2018-09-20 16:24:27 +00:00
<row >
<entry > 7.2.0</entry>
<entry >
The class constants of <classname > DateTime</classname> are now defined
on <classname > DateTimeInterface</classname> .
</entry>
</row>
2017-11-20 20:39:26 +00:00
<row >
<entry > 7.0.0</entry>
<entry >
Added constants: <link linkend= "datetime.constants.rfc3339_extended" > DATE_RFC3339_EXTENDED</link> and
<link linkend= "datetime.constants.rfc3339_extended" > DateTime::RFC3339_EXTENDED</link> .
</entry>
</row>
2013-05-17 06:06:10 +00:00
<row >
<entry > 5.5.0</entry>
<entry >
The class now implements <classname > DateTimeInterface</classname> .
</entry>
</row>
2014-05-06 16:40:22 +00:00
<row >
<entry > 5.4.24</entry>
<entry >
The COOKIE constant was changed to reflect RFC 1036 using a four digit
year rather than a two digit year (RFC 850) as prior versions.
</entry>
</row>
2012-02-12 16:06:16 +00:00
<row >
<entry > 5.2.2</entry>
<entry >
DateTime object comparison with the
<link linkend= "language.operators.comparison" > comparison operators</link>
changed to work as expected. Previously, all DateTime objects were
considered equal (using <literal > ==</literal> ).
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</section> <!-- }}} -->
2009-01-06 14:55:00 +00:00
</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
2009-09-25 07:04:39 +00:00
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
2009-01-06 14:55:00 +00:00
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
-->