Subject | Re: trunc udf missing? |
---|---|
Author | Adam |
Post date | 2007-03-30T01:29:25Z |
--- In firebird-support@yahoogroups.com, "Francesco Lamonica"
<AlienPenguin@...> wrote:
cast ((((current_timestamp - starttime) * 60 * 24 /3) - 0.5) as integer)
Otherwise, there is a floor function in ib_udf which ships with Firebird.
Adam
<AlienPenguin@...> wrote:
>actually) passed
> Hi, i have a query part of which is like
>
> (current_timestamp - starttime) * 60 * 24 /3
>
> starttime is TIMESTAMP
>
> what i want to know is how many minutes (group of 3 minutes
> since starttimeA good trick is:
>
> if i try
>
> cast ((current_timestamp - starttime) * 60 * 24 /3 as integer)
cast ((((current_timestamp - starttime) * 60 * 24 /3) - 0.5) as integer)
Otherwise, there is a floor function in ib_udf which ships with Firebird.
Adam