Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: convert month number to month name

by Shaveta_Chawla (Acolyte)
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.


Comment on Re: convert month number to month name
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-11-28 14:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (197 votes), past polls