mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-27 22:38:55 +00:00

- Moved the intro from reference.xml to book.xml - Change the intro ID to intro.<extname> - Moved the setup sections to setup.xml - Changed the constants section to be <appendix> git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@248346 c90b9560-bf6c-de11-be94-00142212c4b1
194 lines
4.2 KiB
XML
Executable file
194 lines
4.2 KiB
XML
Executable file
<?xml version='1.0' encoding='iso-8859-1'?>
|
|
<!-- $Revision: 1.12 $ -->
|
|
<appendix xml:id="datetime.constants" xmlns="http://docbook.org/ns/docbook">
|
|
&reftitle.constants;
|
|
<para>
|
|
The following constants are defined since PHP 5.1.1 and they offer standard
|
|
date representations, which can be used along with the date format functions
|
|
(like <function>date</function>).
|
|
</para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_ATOM</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Atom (example: 2005-08-15T15:52:01+00:00)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_COOKIE</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
HTTP Cookies (example: Monday, 15-Aug-05 15:52:01 UTC)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_ISO8601</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
ISO-8601 (example: 2005-08-15T15:52:01+0000)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_RFC822</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 822 (example: Mon, 15 Aug 05 15:52:01 +0000)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_RFC850</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 850 (example: Monday, 15-Aug-05 15:52:01 UTC)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_RFC1036</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 1036 (example: Mon, 15 Aug 05 15:52:01 +0000)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_RFC1123</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 1123 (example: Mon, 15 Aug 2005 15:52:01 +0000)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_RFC2822</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RFC 2822 (Mon, 15 Aug 2005 15:52:01 +0000)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_RFC3339</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Same as <constant>DATE_ATOM</constant> (since PHP 5.1.3)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_RSS</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
RSS (Mon, 15 Aug 2005 15:52:01 +0000)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>DATE_W3C</constant>
|
|
(<type>string</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
World Wide Web Consortium (example: 2005-08-15T15:52:01+00:00)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
<para>
|
|
Following constants exists since PHP 5.1.2 and specify a format returned by
|
|
functions <function>date_sunrise</function> and
|
|
<function>date_sunset</function>.
|
|
</para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>SUNFUNCS_RET_TIMESTAMP</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Timestamp
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>SUNFUNCS_RET_STRING</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Hours:minutes (example: 08:02)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term>
|
|
<constant>SUNFUNCS_RET_DOUBLE</constant>
|
|
(<type>integer</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Hours as floating point number (example 8.75)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</appendix>
|
|
|
|
<!-- 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:"../../../../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
|
|
-->
|