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 romping around the Monastery: (4)
As of 2015-07-30 02:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls