2014-09-05 07:44:07 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 06:46:52 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-12-16 11:35:17 +00:00
|
|
|
<appendix xml:id="datetime.constants" xmlns="http://docbook.org/ns/docbook">
|
2005-07-30 18:14:12 +00:00
|
|
|
&reftitle.constants;
|
|
|
|
<para>
|
2009-01-06 14:55:00 +00:00
|
|
|
The <link linkend="datetime.constants.types"><literal>DATE_</literal>
|
2021-04-24 17:01:17 +00:00
|
|
|
constants</link> are defined and they offer standard
|
2005-07-30 18:14:12 +00:00
|
|
|
date representations, which can be used along with the date format functions
|
2005-11-29 09:25:12 +00:00
|
|
|
(like <function>date</function>).
|
2005-07-30 18:14:12 +00:00
|
|
|
</para>
|
2006-11-14 16:45:31 +00:00
|
|
|
<para>
|
2021-04-24 17:01:17 +00:00
|
|
|
Following constants specify a format returned by
|
2006-11-14 16:45:31 +00:00
|
|
|
functions <function>date_sunrise</function> and
|
|
|
|
<function>date_sunset</function>.
|
|
|
|
</para>
|
|
|
|
<variablelist>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.sunfuncs-ret-timestamp">
|
2006-11-14 16:45:31 +00:00
|
|
|
<term>
|
|
|
|
<constant>SUNFUNCS_RET_TIMESTAMP</constant>
|
2020-11-02 15:39:04 +00:00
|
|
|
(<type>int</type>)
|
2006-11-14 16:45:31 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Timestamp
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.sunfuncs-ret-string">
|
2006-11-14 16:45:31 +00:00
|
|
|
<term>
|
|
|
|
<constant>SUNFUNCS_RET_STRING</constant>
|
2020-11-02 15:39:04 +00:00
|
|
|
(<type>int</type>)
|
2006-11-14 16:45:31 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Hours:minutes (example: 08:02)
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2012-02-28 13:22:09 +00:00
|
|
|
<varlistentry xml:id="constant.sunfuncs-ret-double">
|
2006-11-14 16:45:31 +00:00
|
|
|
<term>
|
|
|
|
<constant>SUNFUNCS_RET_DOUBLE</constant>
|
2020-11-02 15:39:04 +00:00
|
|
|
(<type>int</type>)
|
2006-11-14 16:45:31 +00:00
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
Hours as floating point number (example 8.75)
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2007-12-16 11:35:17 +00:00
|
|
|
</appendix>
|
2005-07-30 18:14:12 +00:00
|
|
|
|
|
|
|
<!-- 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"
|
2005-07-30 18:14:12 +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
|
|
|
|
-->
|