On Tue, Nov 06, 2001 at 07:30:29PM -0500, Glenn Maynard wrote: > On Tue, Nov 06, 2001 at 12:55:29PM +0300, Alexander V. Lukyanov wrote: > > Time+TimeDiff is a time since epoch, Time+Time is not defined. That's the main > > difference. Other difference is in the name, TimeDiff underlines that it is > > not a time but amount of time. > > Strictly speaking, it's clearly defined. Time is the amount of time > since epoch; Time + Time is the sum of both times since the epoch. > (It's defined; it's just not useful, and in practice it'll overflow.) > Likewise, other operations work for both: interval * int (ie. 10 seconds > * 2) works the same for time since epoch; again, it's just not useful.
Time and TimeDiff are like Point and Vector. They are represented in the same way, but different set of operations is defined on them. Anyway, currently there is no duplication of code. -- Alexander.
