<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Marc Wiatrowski wrote:
<blockquote cite="mid:1211201956.7288.499.camel@slug.iglass.net"
 type="cite">
  <pre wrap="">On Fri, 2008-05-16 at 18:45 -0400, Greg Brown wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I have a case of teh stupids.  I can convert dates to epoch using
localtime() easily enough (and thus manipulate the dates so I can see how
far in the past a date occurred by subtracting multiples of 86400.. easy
enough).

But how can I convert this past date:

Sun May 11 18:02:35 2008

.... back to epoch?  I want to subtract the past epoch date from the current
to find out how many days have passed.  This should be simple (and I'm sure
it is) but this rusty part of the brain refuses to work and I'm not finding
what I'm needing from Google.

Any help would be greatly appreciated.

Greg
    </pre>
  </blockquote>
  <pre wrap=""><!---->

I use Date::Handler quite often, specifically Date::Handler::Range/Delta
would work well.

marc
  </pre>
</blockquote>
The DateTime module will do all of this and more!<br>
</body>
</html>