View Single Post
Old 03-17-2004, 11:01 AM   #3
ignatz
mechanoholic
ignatz ought to be getting tired of karma fortunes by now.ignatz ought to be getting tired of karma fortunes by now.ignatz ought to be getting tired of karma fortunes by now.ignatz ought to be getting tired of karma fortunes by now.ignatz ought to be getting tired of karma fortunes by now.ignatz ought to be getting tired of karma fortunes by now.ignatz ought to be getting tired of karma fortunes by now.ignatz ought to be getting tired of karma fortunes by now.ignatz ought to be getting tired of karma fortunes by now.ignatz ought to be getting tired of karma fortunes by now.ignatz ought to be getting tired of karma fortunes by now.
 
ignatz's Avatar
 
Posts: 582
Karma: 1000217
Join Date: Mar 2004
Location: Sarasota, FL
Device: Nook STR/iPhone 4S/EVO 4G
Quote:
Originally Posted by TadW
why are you using timelocal.pl to perform your date/time calculations?
Because I don't know perl! If there's a better way please tell me. All I'm trying to do is compare two dates and check if the URL date is older than 10 days from the current date. Timelocal is what I stumbled on to do it. As I said, I'm just hacking this script together, using web references, etc.

That said, I did try using "use Time::local" on some standalone sample files that I ran to test the code and I would get an "unknown module" error or something. When I included "require 'timlocal.pl'" it worked. I will try changing the code to "use..." and see what happens.

But if you have another method, please tell me! Thanks.
ignatz is offline