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

Re^2: How to convert mtime using strftime() in perl

by Anonymous Monk
on Apr 08, 2016 at 18:41 UTC ( [id://1159953]=note: print w/replies, xml ) Need Help??


in reply to Re: How to convert mtime using strftime() in perl
in thread How to convert mtime using strftime() in perl

I've tried everything and I get the same error as the original post.
my $mtime = stat( $map_fpath )->mtime; my $map_time = strftime( "%Y%m%d %H%M", localtime( $mtime ) );
Output:
Usage: POSIX::strftime(fmt, sec, min, hour, mday, mon, year, wday = -1 +, yday = -1, isdst = -1)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-24 07:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found