Re: [Gambas-user] datediff problem

2015-08-13 Thread Adrien Prokopowicz
Le Mon, 10 Aug 2015 13:41:17 +0200, Jussi Lahtinen jussi.lahti...@gmail.com a écrit: Sorry to say, but this doesn't seem to be fixed. ? DateDiff(Now, DateAdd(Now, gb.Day, 2), gb.Day) 1 Jussi On Sat, Aug 1, 2015 at 7:16 PM, Benoît Minisini gam...@users.sourceforge.net wrote: Le

Re: [Gambas-user] datediff problem

2015-08-13 Thread Jussi Lahtinen
I think this fixes the problem (in gbx_date.c): int DATE_diff(VALUE *date1, VALUE *date2, int period) { int64_t diff = 0; int sdiff, tmpdiff; DATE_SERIAL ds1 = {0}; DATE_SERIAL ds2 = {0}; bool neg; switch (period) { case DP_DAY: case DP_WEEK:

Re: [Gambas-user] datediff problem

2015-08-13 Thread adamn...@gmail.com
On Thu, 13 Aug 2015 16:22:13 +0200 Adrien Prokopowicz adrien.prokopow...@gmail.com wrote: Le Mon, 10 Aug 2015 13:41:17 +0200, Jussi Lahtinen jussi.lahti...@gmail.com a écrit: Sorry to say, but this doesn't seem to be fixed. ? DateDiff(Now, DateAdd(Now, gb.Day, 2), gb.Day) 1

Re: [Gambas-user] datediff problem

2015-08-10 Thread Jussi Lahtinen
Sorry to say, but this doesn't seem to be fixed. ? DateDiff(Now, DateAdd(Now, gb.Day, 2), gb.Day) 1 Jussi On Sat, Aug 1, 2015 at 7:16 PM, Benoît Minisini gam...@users.sourceforge.net wrote: Le 01/08/2015 17:52, Benoît Minisini a écrit : Le 01/08/2015 17:33, nando a écrit : Here's an

Re: [Gambas-user] datediff problem

2015-08-01 Thread Alexie
Hi Benoit, I also found a bug with ToolBox, and sent the project to your gmail address ... Maybe it is something you can fix (hoping :-)). Regards, Alex 2015-08-01 18:16 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net: Le 01/08/2015 17:52, Benoît Minisini a écrit : Le 01/08/2015

[Gambas-user] datediff problem

2015-08-01 Thread nando
Here's an example. Dim FirstDate as Date FirstDate = Date(2015, 1, 1, 0, 0, 0, 0) Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 00), gb.day) 'ok Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 01), gb.day) 'ok Print DateDiff(firstdate, Date(2015, 8, 1, 03, 59, 59), gb.day)

Re: [Gambas-user] datediff problem

2015-08-01 Thread Benoît Minisini
Le 01/08/2015 17:33, nando a écrit : Here's an example. Dim FirstDate as Date FirstDate = Date(2015, 1, 1, 0, 0, 0, 0) Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 00), gb.day) 'ok Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 01), gb.day) 'ok Print

Re: [Gambas-user] datediff problem

2015-08-01 Thread Benoît Minisini
Le 01/08/2015 17:52, Benoît Minisini a écrit : Le 01/08/2015 17:33, nando a écrit : Here's an example. Dim FirstDate as Date FirstDate = Date(2015, 1, 1, 0, 0, 0, 0) Print DateDiff(firstdate, Date(2015, 8, 1, 00, 00, 00), gb.day) 'ok Print DateDiff(firstdate, Date(2015, 8, 1,