in reply to Date Manipulation Calculation Question

use POSIX qw(strftime); $now = time; $then = $now - 15 * 60; # 15 minutes ago; print map strftime("%Y%m%d%H%M%S\n", localtime($_)), $now, $then;

All code untested, but use something like that rather than call the date(1) command.