Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: convert month number to month name

by Shaveta_Chawla (Sexton)
on Aug 30, 2012 at 07:36 UTC ( #990671=note: print w/replies, xml ) Need Help??


in reply to convert month number to month name

Isn't there any perl built in function which can do the work, like there is strftime function which can do the work.

Replies are listed 'Best First'.
Re^2: convert month number to month name
by johngg (Abbot) on Aug 30, 2012 at 08:12 UTC

    POSIX is a core module so strftime() is available without the need to install any modules from CPAN.

    $ perl -E ' > use POSIX qw{ strftime }; > say strftime q{%b}, localtime( time() );' Aug $

    Cheers,

    JohnGG

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://990671]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-12-05 09:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (75 votes). Check out past polls.