in reply to Re: difference between 2 dates
in thread difference between 2 dates

I like this ... I didn't realize until now that strptime was set up to return a Time::Piece object and that you could directly subtract one Time::Piece object from another. Very nice. Monk discussion once again proves to be educational.

Replies are listed 'Best First'.
Re3: difference between 2 dates
by blakem (Monsignor) on Mar 06, 2002 at 21:10 UTC
    Also notice that the subtraction returns a Time::Seconds object rather than a simple integer. This trivialized the "in minutes" requirement, and makes more complicated calculations less error prone.

    -Blake