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:
On Thu, 13 Aug 2015 16:22:13 +0200
"Adrien Prokopowicz" wrote:
> Le Mon, 10 Aug 2015 13:41:17 +0200, Jussi Lahtinen
> 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
Le Mon, 10 Aug 2015 13:41:17 +0200, Jussi Lahtinen
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 01/08/2015 17:52
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
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 :
> Le 01/08/2015 17:52, Benoît Minisini a écrit :
> > Le 01/08/2015 17:33, nando a écrit :
> >> He
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, Dat
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 DateD
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) 'o