Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Months of the year

by Anonymous Monk
on Mar 31, 2014 at 19:14 UTC ( [id://1080432]=note: print w/replies, xml ) Need Help??


in reply to Re: Months of the year
in thread Months of the year

Thats a lot less code, now is trying to get the full name of the months with:
my @months = $t->fullmonth;
Not that easy I guess. It only gives the full name of the current month.

Replies are listed 'Best First'.
Re^3: Months of the year
by farang (Chaplain) on Mar 31, 2014 at 20:16 UTC
    use Time::Piece; use feature 'say'; my $t = Time::Piece->strptime('1', '%m'); for ( 0..11 ) { say $t->add_months($_)->fullmonth }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found