From 409281c7074bb92d0bfa682e15a874e1b5117f6f Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Mon, 16 Nov 2009 11:37:26 +0000 Subject: [PATCH] Starts at 0001-01-02 (bug #49227) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290806 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/paradox/functions/px-timestamp2string.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/paradox/functions/px-timestamp2string.xml b/reference/paradox/functions/px-timestamp2string.xml index f4c510395e..5fc4d19242 100644 --- a/reference/paradox/functions/px-timestamp2string.xml +++ b/reference/paradox/functions/px-timestamp2string.xml @@ -19,7 +19,7 @@ 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. @@ -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.