[Gambas-user] dateadd overflow...

Stephen Bungay sbungay at ...981...
Tue Sep 6 13:12:54 CEST 2011


On 09/06/2011 07:09 AM, Benoît Minisini wrote:
>>> 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,
>
Merci.




More information about the User mailing list