It might be more robust (and maybe faster) to use POSIX::mktime or Time::Local::timelocal to calculate the epoch date for both dates, and simply subtract the second from the first.
In reply to Re: Code to calculate Delta b/w two dates in seconds
by moritz
in thread Code to calculate Delta b/w two dates in seconds
by snra_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |