Subject | Re: [firebird-support] Subtracting 3 minutes from Now |
---|---|
Author | Martijn Tonies |
Post date | 2005-06-08T13:48Z |
Hello Grant,
select cast('now' as timestamp) - (3.0000/1440.0)
from rdb$database
Try:
ftime = ftime - (3.000/1440.0)
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
> >> Is this a dialect 3 database?This seems to work here:
>
> Yes
>
> >>ftime = :ftime - (3.0/1440.0);
>
> >>To make sure the calculation uses floats.
>
> Still did not make any difference :-((
select cast('now' as timestamp) - (3.0000/1440.0)
from rdb$database
Try:
ftime = ftime - (3.000/1440.0)
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com