[Gambas-user] dateadd overflow...

Benoît Minisini gambas at ...1...
Tue Sep 6 13:09:45 CEST 2011


> > Gambas 2.23
> > 
> >   I have three variables, all of type date.
> > 
> > mdStartTime
> > mdEndTime
> > newEndTime
> > 
> > The first two contain time values with no date portion. This was
> > obtained from a function which used
> > 
> > Time(CInt(TimeArray[0]), CInt(TimeArray[1]), CInt(TimeArray[2]))
> > 
> > to generate the value to return. It ends up that the following get
> > assigned;
> > 
> > mdStartTime = 10:01:31
> > mdEndTIme = 10:16:31
> > 
> > I want to use DateAdd to get a new value based on the mdEndTime value +
> > 15 minutes. To do this I used
> > 
> > newEndTIme = DateAdd(mdEndTime, gb.minute, 15)
> > 
> >    And promptly got an Overflow error.
> >    
> >    Now I'm puzzled. Is there a problem with DateAdd?
> > 
> > Regards
> > Steve.
> 
> I confirm the bug. I will look at it...

OK, fixed in revision #4097.

Regards,

-- 
Benoît Minisini




More information about the User mailing list