Date::Calc is a wonderful thing. If that doesn't work however I would suggest just storing the number of seconds from epoch (aka time) in the log file. Then you simply subtract 30 days worth of seconds aka,
60*60*24*30 seconds -> which you can just use the constant for whatever that comes out to be (yeh I know I am on a computer but I am sure you can handle the simple math ;-)) from the current time in seconds from the epoch and if the time in the log is greater then it hasn't been 30 days. Or you could do the reverse, tack on 30 days worth of seconds to the time in the log and if that is greater than the current time then it hasn't been 30 days, etc. If you then need readable date/time strings for either time you can just localtime it. http://danconia.org fliptop wrote: > On Wed, 18 Sep 2002 at 12:53, [EMAIL PROTECTED] opined: > > [snip] > n:My problem with this scenario involves my lack of knowledge in -- > n: > n:A. ... first converting a current system date to a string date (which can > n:be appended to a text log file). > n:B. ... or comparing the logged initial-question date with the current > n:system date to determine if 30 days have gone by since the initial question. > n: > n:Any ideas on how to do this? > > have you looked into using date::calc? it may be the answer to all your > questions. > > http://search.cpan.org/author/STBEY/Date-Calc-5.1/ > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]