Unix and Linux Discussions Tagged with 7.1 |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
8 |
25,834 |
AIX |
|
|
|
17 |
12,832 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,117 |
Programming |
|
|
|
0 |
2,934 |
AIX |
|
|
|
8 |
11,347 |
AIX |
|
|
|
0 |
1,380 |
Software Releases - RSS News |
|
|
|
0 |
703 |
Software Releases - RSS News |
|
|
|
0 |
737 |
Software Releases - RSS News |
|
|
|
0 |
706 |
Software Releases - RSS News |
|
|
|
0 |
751 |
Software Releases - RSS News |
|
|
|
0 |
801 |
Software Releases - RSS News |
|
|
|
0 |
918 |
Software Releases - RSS News |
|
|
|
0 |
902 |
Software Releases - RSS News |
|
|
|
0 |
957 |
Software Releases - RSS News |
|
|
|
0 |
1,124 |
UNIX and Linux RSS News |
|
|
|
0 |
636 |
Software Releases - RSS News |
|
|
|
0 |
874 |
Software Releases - RSS News |
|
|
|
0 |
836 |
Software Releases - RSS News |
|
|
|
0 |
749 |
Software Releases - RSS News |
|
|
|
0 |
921 |
Software Releases - RSS News |
|
|
|
0 |
1,557 |
UNIX and Linux RSS News |
|
|
|
0 |
921 |
Software Releases - RSS News |
|
|
|
0 |
849 |
Software Releases - RSS News |
|
|
|
0 |
1,114 |
UNIX and Linux RSS News |
|
|
|
0 |
1,088 |
Software Releases - RSS News |
|
|
|
0 |
896 |
Software Releases - RSS News |
|
|
|
0 |
720 |
Software Releases - RSS News |
|
|
|
0 |
982 |
Software Releases - RSS News |
|
|
|
0 |
1,378 |
Software Releases - RSS News |
|
|
|
0 |
970 |
Software Releases - RSS News |
|
|
|
0 |
679 |
Software Releases - RSS News |
|
|
|
0 |
1,326 |
Software Releases - RSS News |
|
|
|
0 |
1,262 |
Software Releases - RSS News |
|
|
|
0 |
770 |
Software Releases - RSS News |
|
|
|
0 |
700 |
Software Releases - RSS News |
|
|
|
0 |
726 |
Software Releases - RSS News |
|
|
|
0 |
985 |
UNIX and Linux RSS News |
|
|
|
0 |
743 |
Software Releases - RSS News |
|
|
|
0 |
661 |
Software Releases - RSS News |
|
|
|
0 |
717 |
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)