On 30 Mei 2010, at 19:18, Marco van de Voort wrote:

> IIRC this is normal and delphi compatible and due to TDatetime being a
> floating point type.

No, it's not Delphi compatible. Delphi's result is alot worst, at least on 
Delphi 7. And I didn't ask to make it truly compatible with Delphi. ;)

> *between does a trunc, and
> "time" is a floating point values, so values might be rounded here and
> there.

What if an app need a precise and correct result, say a rocket launcher? :D Is 
there other alternative solution?

> Sometimes the rounding means that e.g. date+1second is rounded to a bit more
> than date + 1second.  Then later secondsbetween sees no whole second between
> and this results in this behaviour.

What about other languages result? C or PHP, for example.

-Bee-

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to