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.
In reply to Re: Date Manipulation Calculation Question
by duff
in thread Date Manipulation Calculation Question
by EchoAngel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |