Unix and Linux Discussions Tagged with 7.1 |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
8 |
32,083 |
AIX |
|
|
|
17 |
15,100 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,866 |
Programming |
|
|
|
0 |
3,614 |
AIX |
|
|
|
8 |
12,473 |
AIX |
|
|
|
0 |
2,609 |
Software Releases - RSS News |
|
|
|
0 |
1,127 |
Software Releases - RSS News |
|
|
|
0 |
1,204 |
Software Releases - RSS News |
|
|
|
0 |
1,105 |
Software Releases - RSS News |
|
|
|
0 |
1,149 |
Software Releases - RSS News |
|
|
|
0 |
1,215 |
Software Releases - RSS News |
|
|
|
0 |
1,310 |
Software Releases - RSS News |
|
|
|
0 |
1,276 |
Software Releases - RSS News |
|
|
|
0 |
1,286 |
Software Releases - RSS News |
|
|
|
0 |
1,368 |
UNIX and Linux RSS News |
|
|
|
0 |
1,023 |
Software Releases - RSS News |
|
|
|
0 |
1,271 |
Software Releases - RSS News |
|
|
|
0 |
1,231 |
Software Releases - RSS News |
|
|
|
0 |
1,216 |
Software Releases - RSS News |
|
|
|
0 |
1,414 |
Software Releases - RSS News |
|
|
|
0 |
1,822 |
UNIX and Linux RSS News |
|
|
|
0 |
1,414 |
Software Releases - RSS News |
|
|
|
0 |
1,288 |
Software Releases - RSS News |
|
|
|
0 |
1,380 |
UNIX and Linux RSS News |
|
|
|
0 |
1,420 |
Software Releases - RSS News |
|
|
|
0 |
1,234 |
Software Releases - RSS News |
|
|
|
0 |
1,016 |
Software Releases - RSS News |
|
|
|
0 |
1,333 |
Software Releases - RSS News |
|
|
|
0 |
1,733 |
Software Releases - RSS News |
|
|
|
0 |
1,373 |
Software Releases - RSS News |
|
|
|
0 |
1,035 |
Software Releases - RSS News |
|
|
|
0 |
1,816 |
Software Releases - RSS News |
|
|
|
0 |
1,595 |
Software Releases - RSS News |
|
|
|
0 |
1,065 |
Software Releases - RSS News |
|
|
|
0 |
1,055 |
Software Releases - RSS News |
|
|
|
0 |
1,026 |
Software Releases - RSS News |
|
|
|
0 |
1,244 |
UNIX and Linux RSS News |
|
|
|
0 |
1,041 |
Software Releases - RSS News |
|
|
|
0 |
963 |
Software Releases - RSS News |
|
|
|
0 |
1,069 |
Software Releases - RSS News |
PX_DATE2STRING(3) PX_DATE2STRING(3)
px_date2string - Converts a date into a string.
SYNOPSIS
string px_date2string (resource $pxdoc, int $value, string $format)
DESCRIPTION
Turns a date as it stored in the paradox file into human readable format. Paradox dates are the number of days since 1.1.0000. This func-
tion is just for convenience. It can be easily replaced by some math and the calendar functions as demonstrated in the example below.
PARAMETERS
o $pxdoc
- Resource identifier of the paradox database as returned by px_new(3).
o $value
- Value as stored in paradox database field of type PX_FIELD_DATE.
o $format
- String format similar to the format used by date(3). The placeholders support by this function is a subset of those supported by
date(3) (Y, y, m, n, d, j, L).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Turn a paradox date into a human readable form
<?php
$px = px_new();
/* make up a date as it could be stored in */
/* a date field of a paradox db. */
/* 700000 days since 1.1.0000. */
$days = 700000;
/* Use the calendar functions to print a */
/* human readable format of the date */
echo jdtogregorian($days+1721425)."
";
/* px_date2string() outputs the same */
echo px_date2string($px, $days, "n/d/Y")."
";
px_delete($px);
?>
The above example will output:
7/15/1917
7/15/1917
SEE ALSO
px_timestamp2string(3), jdtogregorian(3).
PHP Documentation Group PX_DATE2STRING(3)