Re: win32 Timestamp problem

From: Date: Wed, 10 Mar 2004 15:48:04 +0000
Subject: Re: win32 Timestamp problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-33388@lists.php.net to get a copy of this message
Hi, See http://php.weblogs.com/adodb_date_time_library I wrote this to fix this problem. INTRODUCTION PHP native date functions use integer timestamps for computations. Because of this, dates are restricted to the years 1901-2038 on Unix and 1970-2038 on Windows due to integer overflow for dates beyond those years. This library overcomes these limitations by replacing the native function's signed integers (normally 32-bits) with PHP floating point numbers (normally 64-bits). "Mike Ford" <M.Ford@leedsmet.ac.uk> wrote in message news:0EEFC4D3CBE8A142868E396381B77A53D12588@lis-exchange3.lmu.ac.uk... > On 09 March 2004 20:36, J. Kevin C. Burton wrote: > > > Hey all, after reading documentation on the Win32 bug > > regarding Timestamps > > not being able to go prior than 1970.. > > > > I am in need of a way to calculate someone's age. > > > > Has anyone found a fix or workaround for this bug? Or a way > > to calculate age > > without using the timestamp? > > > > They say that v5 of PHP will fix this issue, but I've been using every > > stable release of PHP5 and it's a no go. > > No, it won't. It's an operating system issue, and nothing PHP *can* fix. > > > Any help would be appreciated. > > Have you looked at the Calendar extension? > http://www.php.net/calendar > > Cheers! > > Mike > > --------------------------------------------------------------------- > Mike Ford, Electronic Information Services Adviser, > Learning Support Services, Learning & Information Services, > JG125, James Graham Building, Leeds Metropolitan University, > Beckett Park, LEEDS, LS6 3QS, United Kingdom > Email: m.ford@leedsmet.ac.uk > Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.db (#33388) next »