svn: /phpdoc/en/trunk/reference/paradox/functions/ px-timestamp2string.xml
| From: | Jakub Vrana | Date: | Mon, 16 Nov 2009 11:37:26 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/paradox/functions/ px-timestamp2string.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5392@lists.php.net to get a copy of this message | ||
vrana Mon, 16 Nov 2009 11:37:26 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290806
Log:
Starts at 0001-01-02 (bug #49227)
Bug: http://bugs.php.net/49227 (Closed) Paradox Timestamp
format is not accurately documented
Changed paths:
U phpdoc/en/trunk/reference/paradox/functions/px-timestamp2string.xml
Modified: phpdoc/en/trunk/reference/paradox/functions/px-timestamp2string.xml
===================================================================
--- phpdoc/en/trunk/reference/paradox/functions/px-timestamp2string.xml 2009-11-16 11:26:41 UTC (rev
290805)
+++ phpdoc/en/trunk/reference/paradox/functions/px-timestamp2string.xml 2009-11-16 11:37:26 UTC (rev
290806)
@@ -19,7 +19,7 @@
<para>
Turns a timestamp as it stored in the paradox file into human readable
- format. Paradox timestamps are the number of milliseconds since 1.1.0000.
+ 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.
</para>
@@ -122,7 +122,7 @@
echo jdtogregorian($days+1721425)."\n";
/* Turn it into a timestamp as it stored in a paradox database */
-/* Timestamps are stored in milli seconds since 1.1.0000 */
+/* Timestamps are stored in miliseconds since 0001-01-02 */
$stamp = $days * 86400.0 * 1000.0;
/* Add one hour */
$stamp += 3600000.0;
@@ -148,7 +148,7 @@
has a different base of 1.1.4714 b.c. and must therefore be calculated
by adding 1721425 to the day count used in the paradox file. Turning the
day count into a timestamp is easily done by multiplying with 86400000.0
- to obtain milli seconds.
+ to obtain miliseconds.
</para>
</refsect1>