[Gambas-user] Elusive Gambas3 crashing bug
Jussi Lahtinen
jussi.lahtinen at ...626...
Wed Nov 17 21:18:21 CET 2010
> This fails randomly:
>
> If DateDiff(Now, DateAdd(Date(Now), gb.Day, 2), gb.Day) <> 2 Then
> Return 160
> Endif
>
> Though, today with new revision (3299) I haven't be able to reproduce it.
> I'll look it more closely later.
>
OK, now it fails again.
If DateDiff(Now, DateAdd(Date(Now), gb.Day, 2), gb.Day) <> 2 Then
Debug Now
Debug DateAdd(Date(Now), gb.Day, 2)
Debug DateDiff(Now, DateAdd(Date(Now), gb.Day, 2), gb.Day)
Return 160
Endif
mTest.DoTests.842: 17/11/2010 22:08:38
mTest.DoTests.843: 19/11/10
mTest.DoTests.844: 1
More...
? now
17/11/2010 22:10:53
? date(now)
17/11/10
? date(2010,11,17,22,11,33)
17/11/2010 22:11:33
So, it seems that date command doesn't always like "now".
This seems to happen only at evenings.
Jussi
Gambas 3 rev 3299 @ Ubuntu 10.04 64bit
More information about the User
mailing list