Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: create array from strftime

by ikegami (Pope)
on Jun 20, 2012 at 19:45 UTC ( #977461=note: print w/ replies, xml ) Need Help??


in reply to Re^2: create array from strftime
in thread create array from strftime

How does one use that to populate $day, $month and $year?


Comment on Re^3: create array from strftime
Replies are listed 'Best First'.
Re^4: create array from strftime
by taint (Chaplain) on Jun 20, 2012 at 22:19 UTC
    I used this to populate Month. Couldn't something similar be used for Year & Day?
    use Time::Piece; use strict; my @months = qw( 01 02 03 04 05 06 07 08 09 10 11 12 ); my $t = localtime; print localtime->month(@months);
    my $perl_version( 5.12.4 );
    print $perl_version;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-30 06:40 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 (270 votes), past polls