Unix and Linux Discussions Tagged with ls -l |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
9 |
4,439 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
2,813 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,932 |
UNIX for Beginners Questions & Answers |
|
|
|
6 |
5,418 |
UNIX Desktop Questions & Answers |
|
|
|
13 |
8,446 |
Shell Programming and Scripting |
|
|
|
2 |
32,063 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
3,939 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
9,080 |
Shell Programming and Scripting |
|
|
|
3 |
14,630 |
Shell Programming and Scripting |
|
|
|
13 |
9,784 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
18,735 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
5,459 |
Shell Programming and Scripting |
|
|
|
6 |
8,276 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
18,419 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
30,046 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
29,397 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,134 |
Programming |
|
|
|
1 |
7,021 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,487 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
21,145 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
15,207 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
11,314 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
6,395 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,667 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
10,337 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,637 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,993 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,584 |
UNIX for Dummies Questions & Answers |
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)