Re: TimeStamp compare

2003-01-30 Thread R. Joseph Newton
John Baker wrote: > #-- This module is a must-have: > use Date::Manip; Hi John, I'm not so sure about your suggestion. You might wish to re-read the section concerning whether usage is appropriate in the doc for this module. The author explicitly recommends that the module be used only in pr

Re: TimeStamp compare

2003-01-30 Thread Paul Johnson
On Thu, Jan 30, 2003 at 10:23:14AM -0500, John Baker wrote: > On Thu, 30 Jan 2003, Bob Showalter wrote: > > > If you just want to compare two files to see if one is newer, use the -M > > operator: > > > >$need_recompile = 1 if -M 'foo.java' < -M 'foo.class'; > > > > -M gives you the age in day

Re: TimeStamp compare

2003-01-30 Thread John Baker
On Thu, 30 Jan 2003 [EMAIL PROTECTED] wrote: > Date: Thu, 30 Jan 2003 10:49:27 -0500 > From: [EMAIL PROTECTED] > To: John Baker <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: TimeStamp compare > > Ok mate and where can I download that module? > http:

Re: TimeStamp compare

2003-01-30 Thread alima
Ok mate and where can I download that module? Quoting John Baker <[EMAIL PROTECTED]>: > > > > On Thu, 30 Jan 2003 [EMAIL PROTECTED] wrote: > > > Date: Thu, 30 Jan 2003 07:59:11 -0500 > > From: [EMAIL PROTECTED] > > To: [EMAIL PROTECTED] > > Subj

RE: TimeStamp compare

2003-01-30 Thread John Baker
On Thu, 30 Jan 2003, Bob Showalter wrote: > If you just want to compare two files to see if one is newer, use the -M > operator: > >$need_recompile = 1 if -M 'foo.java' < -M 'foo.class'; > > -M gives you the age in days of a file, measured from the time your script > was started (stored in the

Re: TimeStamp compare

2003-01-30 Thread wiggins
On Thu, 30 Jan 2003 09:34:12 -0500 (EST), John Baker <[EMAIL PROTECTED]> wrote: > #-- This module is a must-have: > use Date::Manip; > > # Get properly formatted modify time of file from epoch > my $fmodtime = (stat($fh))[9]; > my

RE: TimeStamp compare

2003-01-30 Thread Bob Showalter
[EMAIL PROTECTED] wrote: > Hi there mates, > >I would like to Know If anyone of you have already tried to get > the time and date a file was created from the OS. The stat() function will do that. But read on... > For example imagine > I have a *.java file and I would like to compare the *.c

Re: TimeStamp compare

2003-01-30 Thread John Baker
On Thu, 30 Jan 2003 [EMAIL PROTECTED] wrote: > Date: Thu, 30 Jan 2003 07:59:11 -0500 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: TimeStamp compare > > Hi there mates, > >I would like to Know If anyone of you have already tried to get the time and &

RE: TimeStamp compare

2003-01-30 Thread wiggins
On Thu, 30 Jan 2003 08:49:00 -0500, [EMAIL PROTECTED] wrote: > Ok , I see what you mean but How Can I compare the dates once They aren“t > numeric? > Remember to group reply so the list can help/benefit as well. Not sure what you mean? If you

RE: TimeStamp compare

2003-01-30 Thread wiggins
On Thu, 30 Jan 2003 07:59:11 -0500, [EMAIL PROTECTED] wrote: > Hi there mates, > >I would like to Know If anyone of you have already tried to get the time and > date a file was created from the OS. For example imagine I have a *.java file >

TimeStamp compare

2003-01-30 Thread alima
Hi there mates, I would like to Know If anyone of you have already tried to get the time and date a file was created from the OS. For example imagine I have a *.java file and I would like to compare the *.class file date of creation with the date of edition of the *.java file in other to mak