Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: formatting datetime with strftime

by poj (Parson)
on Jul 22, 2013 at 15:34 UTC ( #1045676=note: print w/replies, xml ) Need Help??


in reply to Re^3: formatting datetime with strftime
in thread formatting datetime with strftime

UPDATE : Please Ignore - reply to wrong node

The order of your arguments is wrong, it should be
strftime(fmt, sec, min, hour, mday, mon, year)
where mon begins at zero and year is since 1900.

my $datetimestring = "5/4/13 16:09"; my ($month,$day,$year,$hour,$min) = split /\D/,$datetimestring; my $str = strftime("%b %d %Y %H:%M:%S", 0,$min,$hour,$day,$month-1,$y +ear+100);
poj

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045676]
help
Chatterbox?
Discipulus italia.gov 404
[marto]: no real change there then? :P
marto ducks

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2016-12-05 08:35 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.