Nothing to do with POSIX. you just need to work out how to get the correct date out of localtime.
--use constant DAY => 60 * 60 * 24; use POSIX 'strftime'; print strftime('%Y%m%d', localtime(time - (14 * DAY)));
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: POSIX strftime
by davorg
in thread POSIX strftime
by Gwalchmai
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |