Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Convert Old Unix Date to Perl and compare

by Anonymous Monk
on Feb 27, 2012 at 21:41 UTC ( #956530=note: print w/ replies, xml ) Need Help??


in reply to Convert Old Unix Date to Perl and compare

There are two parts to this problem: (1) splitting the multi-digit string into component parts, as thoroughly shown; and (2) dealing with the date from that point on. For the latter, I go straight to packages like Date::Manip. What these modules do is to treat "a date" as "an opaque software object." You create one using whatever information you have, then you manipulate it however you need to do, then you get the result out in whatever printable format you need. You do not know how it represents its data; you do not care.


Comment on Re: Convert Old Unix Date to Perl and compare

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-09-20 16:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls