Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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]
[Corion]: virtualsue: Aaah, yes, we do use these a lot
[1nickt]: Discipulus Yes, I think it is maybe easier to be a good monk in "real" life when you are young and idealistic or old and weary ... nost so much in middle age.
[1nickt]: 😲 ... or did you mean the Middle Ages, when monastic life was more, umm, "earthy" ?!

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2017-12-13 14:03 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (368 votes). Check out past polls.