in reply to Date Handling in Perl
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));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Date Handling in Perl
by joeymac (Acolyte) on Jul 11, 2012 at 15:43 UTC | |
by fishmonger (Chaplain) on Jul 11, 2012 at 16:23 UTC |