use strict; use warnings; use POSIX qw(strftime); my $hr = (localtime)[2]; my $minus = $hr < 10 ? 36000 : 0; my $dir = strftime("/something/something/%Y/%m/%d", localtime(time - $ +minus));
In reply to Re: Date Handling in Perl
by fishmonger
in thread Date Handling in Perl
by joeymac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |