mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
72 lines
1.8 KiB
XML
72 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<appendix xml:id="datetime.constants" xmlns="http://docbook.org/ns/docbook">
|
|
&reftitle.constants;
|
|
<para>
|
|
The <link linkend="datetime.constants.types"><literal>DATE_</literal>
|
|
constants</link> are defined and they offer standard
|
|
date representations, which can be used along with the date format functions
|
|
(like <function>date</function>).
|
|
</para>
|
|
<para>
|
|
Following constants specify a format returned by
|
|
functions <function>date_sunrise</function> and
|
|
<function>date_sunset</function>.
|
|
</para>
|
|
<variablelist>
|
|
<varlistentry xml:id="constant.sunfuncs-ret-timestamp">
|
|
<term>
|
|
<constant>SUNFUNCS_RET_TIMESTAMP</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Timestamp
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.sunfuncs-ret-string">
|
|
<term>
|
|
<constant>SUNFUNCS_RET_STRING</constant>
|
|
(<type>int</type>)
|
|
</term>
|
|
<listitem>
|
|
<simpara>
|
|
Hours:minutes (example: 08:02)
|
|
</simpara>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry xml:id="constant.sunfuncs-ret-double">
|
|
<term>
|
|
<constant>SUNFUNCS_RET_DOUBLE</constant>
|
|
(<type>int</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:"~/.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
|
|
-->
|