Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: formatting datetime with strftime

by mreaves (Initiate)
on Jul 22, 2013 at 15:21 UTC ( #1045672=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl -w 
    use POSIX qw(strftime);
    ...
        $time2 = strftime('%b %d, %y %H:%M:%S', $m_raw, $d0_raw, $y_raw, $
    +hh_raw, $mm_raw, $ss_raw);
        print "the formatted date time is: $time2 \n";
    
  2. or download this
    the date_raw is: 4/5/13
    the m_raw is: 04
    ...
    
    the loaded datetime variable is: 1365192540
    the formatted date time is: Jan 07, 01 21:05:04
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2014-07-29 11:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (217 votes), past polls