- added more info about how to treat timestamps and dates

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@210469 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Uwe Steinmann 2006-03-31 07:06:14 +00:00
parent cc96dabaf4
commit 389b3fcd1f

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/paradox.xml, last change in rev -->
<refentry id="function.px-get-record">
<refnamediv>
@ -45,14 +45,21 @@
<para>
The optional <parameter>mode</parameter> can be
<constant>PX_KEYTOLOWER</constant> or <constant>PX_KEYTOUPPER</constant>
in order to convert the keys into lower or upper case. If
in order to convert the keys of the returned array into lower or
upper case. If
<parameter>mode</parameter> is not passed or is 0, then the key will be
exactly like the field name. The element values will contain the field
values. NULL values will be retained and are different from 0.0, 0 or
the empty string. Fields of type <constant>PX_FIELD_TIME</constant>
will be returned as an integer counting the number of milliseconds
starting at midnight. A timestamp is a floating point value also
counting milliseconds starting at the beginning of julian calendar.
starting at midnight. A timestamp
(<constant>PX_FIELD_TIMESTAMP</constant>) and date
(<constant>PX_FIELD_DATE</constant>) are floating point respectively
int values counting milliseconds respectively days starting
at the beginning of julian calendar.
Use the functions <function>px-timestamp2string</function> and
<function>px-date2string</function> to convert them into a character
representation.
</para>
</listitem>
</varlistentry>