On Tuesday, July 1, 2003 [EMAIL PROTECTED] wrote: >Why not: > >$dur1 = new DT::Dur( days => 2 ); >$dur2 = new DT::Dur( months => 1 ); >$dur3 = $dur1 - $dur2; >$dur3->add( days => 3 ); > >If you add $dur3 to a date, it would add 2 days and >subtract a month, then add 3 days again. > >This is not too difficult to implement. >Is it too confusing?
So is $dur2 above an abstracted month? That is, it isn't really resolved into a specific number of days until applied to some real start date? Likewise, how many days long is $dur3 above? It would seem like it holds the real arithmetic in suspense until added to a specific date, yes? > >On Mon, Jun 30, 2003 at 12:20:43PM -0500, Dave Rolsky >wrote: >> > 2) Having a way to construct this directly would >be nice being able >> > to make a duration that you can not directly >construct seems odd. >> >> Well, maybe. Right now the constructor is really >simple, which is good. >> More functionality is nice, but so is simplicity. > - Bruce __bruce__van_allen__santa_cruz__ca__