Starts at 0001-01-02 (bug #49227)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290806 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2009-11-16 11:37:26 +00:00
parent 6ed2122298
commit 409281c707

View file

@ -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 @@ $days = 700000;
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 @@ px_delete($px);
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>