Subject | RE: [firebird-support] difference between TIMESTAMPs |
---|---|
Author | Alan McDonald |
Post date | 2006-04-19T09:24:04Z |
> I have two TIMESTAMP fields CHECKIN and CHECKOUT...I need to calculatedurations are not TIMESTAMPs.
> the duration between them to use in report and also get a TOTAL of all
> durations...
>
> How do i SELECT a duration in propert format, like 01:20...
>
> I tried CAST(CHECKOUT - CHECKIN AS TIMESTAMP) but i have conversion
> error...
>
> Thanks.
subtract them by all means but be aware that the difference is in days
(whole numbers) and decimals parts of a day.
you then calc the resultant duration yourself
Alan