Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Convert Old Unix Date to Perl and compare

by thargas (Chaplain)
on Feb 27, 2012 at 18:19 UTC ( #956492=note: print w/ replies, xml ) Need Help??


in reply to Re: Convert Old Unix Date to Perl and compare
in thread Convert Old Unix Date to Perl and compare

shouldn't it be timelocal() from Time::Local instead of mktime()? Or you could use POSIX qw(mktime) instead, but POSIX is a lot to bring in just for this.


Comment on Re^2: Convert Old Unix Date to Perl and compare
Select or Download Code
Re^3: Convert Old Unix Date to Perl and compare
by JavaFan (Canon) on Feb 27, 2012 at 19:32 UTC
    The OP was using mktime, indicating his problem was extracting the pieces of data from the filename, not with the construction of the time. Who am I to second guess him?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2014-09-15 02:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (145 votes), past polls