in reply to Finding the difference between 2 dates in seconds
Or, for the lazy...
use Date::Manip; my @sec = map UnixDate($_, "%s"), "Aug 26 23:10:59", "Aug 27 10:59:02" +; printf "diff secs: %d\n", $sec[1] - $sec[0]; # = 42483
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Finding the difference between 2 dates in seconds
by Not_a_Number (Prior) on Sep 17, 2007 at 13:38 UTC | |
|
Re^2: Finding the difference between 2 dates in seconds
by ambrus (Abbot) on Sep 28, 2007 at 12:12 UTC |