http://www.perlmonks.org?node_id=399656


in reply to Date subtraction (intervals) w/Class::DBI

I always use epoch seconds for date manipulation.

In this instance I would convert the date to epoch seconds then subtract 5 days (in seconds of course) then convert back to your original format.


mr greywolf
  • Comment on Re: Date subtraction (intervals) w/Class::DBI

Replies are listed 'Best First'.
Re^2: Date subtraction (intervals) w/Class::DBI
by saberworks (Curate) on Oct 16, 2004 at 00:26 UTC
    Thanks a bunch for your help. That's a good idea, one of those, "why didn't I think of that?"