On Thu, 15 Nov 2001, Aaron Johnson wrote:

> +1 on Time::Piece.  I like the more verbose example Gerald gave:
>
> $date3    = $date+{years=>1,months=>2,days=>3};

FWIW, I would never support this directly, because the rhs is a hash, not
an object or a number. But I would support:

$date3 = $date + Time::Seconds->new({years => 1, months => 3, days => 3});

-- 
<Matt/>

    /||    ** Founder and CTO  **  **   http://axkit.com/     **
   //||    **  AxKit.com Ltd   **  ** XML Application Serving **
  // ||    ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** mod_perl news and resources: http://take23.org  **
     \\//
     //\\
    //  \\

Reply via email to