Mar 27, 2000, 3:56 PM
Post #2 of 2
Not sure what you mean by epoch, and I'm not familiar with a module which would do it. A daily cron job should do it.
Re: Opinions about time expiration script...
[In reply to]
I would use an "expiry" date, calculated as current date/month plus one.
<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
@months = (Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sept,Oct,Nov,Dec);
$NextMonth = ($mon + 1) % 12; # use remainder so that it works in December too!
$Expiry = "@months[$NextMonth] $mday";
Then in the cron job, grep for the day and if the month is this month, delete em, suspend em or whatever...