Re: Comparing file dates with current date

2003-10-18 Thread Randal L. Schwartz
> "Paul" == Paul Harwood <[EMAIL PROTECTED]> writes: Paul> I am trying to compare a file's modified timestamp with the current date. Paul> I can use 'stat' to get the timestamp of the file but am not sure how to compare it to the localtime(). More importantly I want to be able to quantify the

Re: Comparing file dates with current date

2003-10-16 Thread John W. Krahn
Paul Harwood wrote: > > I am trying to compare a file's modified timestamp with the current date. > > I can use 'stat' to get the timestamp of the file but am not sure how to > compare it to the localtime(). More importantly I want to be able to > quantify the difference in days, month, hours and

Re: Comparing file dates with current date

2003-10-16 Thread Tore Aursand
On Thu, 16 Oct 2003 11:07:44 -0700, Paul Harwood wrote: > I am trying to compare a file's modified timestamp with the current > date. Take a look at the Date-related modules on CPAN. There are almost too many to list here, but those I use frequently (more or less), are: Time::Piece Date::Cal