Subject RE: [firebird-support] substract just some minutes from a timestamp?
Author Leyne, Sean
Roberto,

> Firebird 2.5.1
>
> Select Current_TimeStamp - Cast('00:20:00' as Time) From rdb$database;
> Select Current_TimeStamp - Cast('00:20:00' as TimeStamp) From
> rdb$database;
>
> Dynamic SQL Error
> expression evaluation not supported
> unknown ISC error 336397244
> How can I correctly substract just some minutes from a timestamp?

Use the ADD_Minute UDF function from the FreeAdhocUDF library (http://freeadhocudf.org/documentation_english/dok_eng_datum.html)


Sean