Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://956530]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2018-04-25 20:44 GMT
Find Nodes?
    Voting Booth?