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
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Date subtraction (intervals) w/Class::DBI
by saberworks (Curate) on Oct 16, 2004 at 00:26 UTC |
In Section
Seekers of Perl Wisdom