px_timestamp2string()
px_timestamp2string - Converts the timestamp into a string.
Syntax
string px_timestamp2string (
resource $pxdoc,
float $value,
string $format)
Arguments
- pxdoc - Resource identifier of the paradox database.
- value - Value as stored in paradox database field of type PX_FIELD_TIME, or PX_FIELD_TIMESTAMP.
- format - String format similar to the format used by date(). The placeholders support by this function is a subset of those supported by date() (Y, y, m, n, d, j, H, h, G, g, i, s, A, a, L).
Description
Turns a timestamp as it stored in the paradox file into human readable format. Paradox timestamps are the number of miliseconds since 0001-01-02. This function is just for convenience. It can be easily replaced by some math and the calendar functions as demonstrated in the following example.
Version
PHP PECL paradox >= 1.4.0
Return value
Returns TRUE on success or FALSE on failure.