On Thu, 2006-06-04 at 11:03 -0700, Timothy Johnson wrote:
> I saw that someone already recommended Date::Calc, but I'll make another
> suggestion:  Time::Local.  It's a much more lightweight module, and it
> depends on your ultimate needs, but it's a good one to be familiar with.
> It takes text dates and converts them to Perl time() format.

If you're going to use this method, use noon rather than midnight as the
time of day. Most people forget that there is a day with 23 hours and
another with 25 hours every year, that is, in most places. Don't believe
me? What just happened April 2nd? Hint: why did you get up an hour
early? Using midnight can throw you calculations off by one day. Using
noon gets around this problem.


-- 
__END__

Just my 0.00000002 million dollars worth,
   --- Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to