From: Yedidyah Bar-D. <di...@ta...> - 2004-09-13 17:22:41
|
On Mon, Sep 13, 2004 at 11:53:24AM +0200, Skop wrote: > Hi to everyone, > > I'm trying now to prepare some little databases with pilot-db, but I can't solve some errors: > > > > This is the db schema: > > (id: name: format) > > > > 0; date; (date) > > 1; time_from (time) > > 2; time_to (time) > > 3; hours (calculated) > > > > I prepared a script for the filed 3: > > (- %2 %1) > > But the error is "Bad argument to -". Are you sure "-" accepts time as args? I don't think so. Try using casting, probably something like (- (int %2) (int %1)) > > Strange, I follow the instructions for scripting, and this is very simple... The format for the time is correct, as writed in the manual (00:00). > > > > If someone can help me, > > Thanks! -- Didi |