Re: Difference of two datetime fields.

2001-02-18 Thread Rolf Hopkins
ect: Difference of two datetime fields. > Hello, > How could I obtain the difference of two datetime fields giving the result > in seconds, like the function datediff in MSsql ? > I tried date_sub but I had no success. > Ex: 2001-02-16 15:00:00 - 2001-02-16 14:00:00=3600 se

Difference of two datetime fields.

2001-02-16 Thread Laercio Brehmer
Hello, How could I obtain the difference of two datetime fields giving the result in seconds, like the function datediff in MSsql ? I tried date_sub but I had no success. Ex: 2001-02-16 15:00:00 - 2001-02-16 14:00:00=3600 seconds Thanks, Laercio Brehmer CIASC [EMAIL PROTECTED