[fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899
John E Briggs
john at johneb47.id.au
Tue May 23 09:12:46 CEST 2006
I do not know how relevant this site is but it maybe worthwhile to browse
http://www.chronos-st.org
You maybe able to develope a few libraries/units for date/timekeeping purposes
from the ideas presented on this site.
John
On Mon, May 22, 2006 at 12:04:11PM +0200, Graeme Geldenhuys wrote:
> On 5/22/06, Bram Kuijvenhoven <kuifwaremailinglists at xs4all.nl> wrote:
> >I guess we will need plenty of unit tests to make sure all the functions
> >work consistent, in particular also for dates close to and before
> >29-12-1899 :)
> >
> >(Note: I sent some mail explaining the TryEncodeDateTime function some
> >time ago (21-4-2006), on Graeme's request. I also mentioned an overflow
> >problem in that code + how to fix. Perhaps this fix can be integrated into
> >the code as well.)
> >
>
> Hi Bram,
>
> Yeah, I had my share of uphill battles with old dates (Delphi and
> FPC). I works fine with recent dates, but don't venture to far off!!
>
> I already have a collection of unit tests for dates, which is
> incorporated into our products unit tests. We use fpcUnit
> extensively. I could always extend those tests a bit more, but as far
> as I understand, FPC developers dont' use fpcUnit, but rather some
> custom testing framework.
>
> Regards,
> Graeme.
More information about the fpc-devel
mailing list