Subject | Re: [ib-support] Subtract two TimeStamp-Fields |
---|---|
Author | Nando Dessena |
Post date | 2001-02-27T08:05:54Z |
Guido,
not quite the same thing. Anyway, it can look the same if you stay under
24 hours (86400 seconds, that is); try:
select cast('00.00.00' as time) + 5400 from rdb$database
If you need to display durations longer than 24 hours, you'll have to
resort to custom processing (SP or UDF) because a TIME datatype simply
won't do.
Ciao
--
____
_/\/ando
> Thanks, that works. Is it possible to cast the duration back to TIME. For example,you don't want a time, you want a duration formatted as "hh:mm"; that's
> I have 5400 sec and I want display the value as 01:30.
not quite the same thing. Anyway, it can look the same if you stay under
24 hours (86400 seconds, that is); try:
select cast('00.00.00' as time) + 5400 from rdb$database
If you need to display durations longer than 24 hours, you'll have to
resort to custom processing (SP or UDF) because a TIME datatype simply
won't do.
Ciao
--
____
_/\/ando