[Gambas-devel] DateAdd and DateDiff
Benoit Minisini
gambas at ...1...
Thu Jul 15 22:48:09 CEST 2004
On Wednesday 14 July 2004 16:13, Nigel Gerrard wrote:
> Benoit,
>
> A few weeks ago there was mention of the VB function DateAdd. Attached
> is an implementation for Gambas. DateDiff is also included.
>
> I'm not sure whether this is where you planned to go - I had a thought
> that maybe if all Datatypes were classes then we could have implemented
> this type of functionality as a method.
> e.g. myDate AS DATE
> mydate = Date
> myDate.Add(period, interval)
>
> But I could be talking rubbish :-)
>
> Nigel
Hi, Nigel.
I don't know how you could test them if you didn't modify the compiler too.
Could you insert your two functions in the gb.vb component ? Because you used
the vb syntax, and I'm not sure that I won't find a better one for Gambas ;-)
When I will, I will backport your code in the interpreter.
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the Devel
mailing list