Subject | Re: [firebird-support] Strange timestamp math w/ FB 2.5 |
---|---|
Author | Helen Borrie |
Post date | 2010-10-21T03:49:39Z |
At 04:23 PM 21/10/2010, Kjell Rilbe wrote:
Did you happen to notice the OP was asking about why his timestamp math wasn't giving him the result he expected, not about how to use datetime functions?
./heLen
>Helen Borrie skriver:Maybe...or not...probably the only one who really knows about the precision of the function's output is Adriano, who wrote the code. Did you test?
>> The difference between two timestamps returns a result in days. 0.0002
>> of a day is 17.28 seconds....but the interval calculation corrects to 4
>> places of decimal. So, for example, if the elapsed time was actually
>> 16.703 seconds, the corrected result in days would be still be 0.0002.
>
>Oh. But does datediff provide better precision?
Did you happen to notice the OP was asking about why his timestamp math wasn't giving him the result he expected, not about how to use datetime functions?
./heLen