Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2016-07-29 13:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (262 votes). Check out past polls.