Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
P is for Practical
 
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 surveying the Monastery: (6)
As of 2014-04-18 04:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (461 votes), past polls