[Gambas-devel] DateAdd and DateDiff

Nigel Gerrard linus at ...2...
Wed Jul 14 16:13:03 CEST 2004


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DateAdd.tar
Type: application/x-tar
Size: 20480 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20040714/0cecef1d/attachment.tar>


More information about the Devel mailing list