require "timelocal.pl"; @old_time = ($sec, ..., $isdst); $old_seconds = &timelocal( @old_time); $new_seconds = time(); if ( $new_seconds - $old_seconds > 3600 * 24 * 15) { print "Interval is greater than 15 days\n"; }