Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: How to get last month date period

by almut (Canon)
on Mar 04, 2010 at 16:20 UTC ( #826733=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %period = (
        Jan => ['01 Dec','31 Dec'],
    ...
    
    my $p = $period{$curr_month};
    print "$p->[0] $curr_year - $p->[1] $curr_year\n";   # 01 Feb 2010 - 2
    +8 Feb 2010
    
  2. or download this
    ...
    my $p = $period{$curr_month};
    ...
        $p->[1] = '29 Feb' unless $curr_year % 4;
    }
    ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://826733]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2014-12-17 23:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (40 votes), past polls