in reply to Converting a day or days to seconds

Yes, the calculation is simple if you're only working with days:
$days = 2; # (or any other number) $seconds = $days * 24 * 60 * 60;

Replies are listed 'Best First'.
Re^2: Converting a day or days to seconds
by Ms. T. (Novice) on Oct 01, 2004 at 03:04 UTC
    I used the calculation, but only used $days = $seconds * 86400. This seemed to work - am I wrong? I am just starting out in Perl, so I am probably totally confused! Thanks, Ms. T.