Re: Time Comparison Easier Than I'm Making them

2007-11-28 Thread Rob Dixon
Mathew Snyder wrote: > I've got an application which uses the format -mm-dd hh:mm:ss for its timestamping. I'm trying to determine if the time a record was created was 5 or more minutes before the time the script runs. Using DateTime->now I get a timestamp of -mm-ddThh:mm:ss. I have no

Re: Time Comparison Easier Than I'm Making them

2007-11-28 Thread Paul Lalli
On Nov 28, 9:50 am, [EMAIL PROTECTED] (Mathew Snyder) wrote: > I've got an application which uses the format -mm-dd hh:mm:ss for its > timestamping. I'm trying to determine if the time a record was created was 5 > or > more minutes before the time the script runs. Using DateTime->now I get a

Re: Time Comparison Easier Than I'm Making them

2007-11-28 Thread Gunnar Hjalmarsson
Mathew Snyder wrote: I've got an application which uses the format -mm-dd hh:mm:ss for its timestamping. I'm trying to determine if the time a record was created was 5 or more minutes before the time the script runs. use Date::Parse; my $rectime = str2time '2007-11-28 16:40:11';

Re: Time Comparison Easier Than I'm Making them

2007-11-28 Thread Steve Bertrand
>> All I'm trying to do is take the hh:mm:ss portion of each timestamp I completely missed this portion of your message. As per perldoc DateTime: $hms= $dt->hms; ...which will populate $hms with just hh:mm:ss. TFM also states how to do comparisons, additions, subtractions et al. Cheers!

Re: Time Comparison Easier Than I'm Making them

2007-11-28 Thread Steve Bertrand
Mathew Snyder wrote: > I've got an application which uses the format -mm-dd hh:mm:ss for its > timestamping. I'm trying to determine if the time a record was created was 5 > or > more minutes before the time the script runs. Using DateTime->now I get a > timestamp of -mm-ddThh:mm:ss. I

Time Comparison Easier Than I'm Making them

2007-11-28 Thread Mathew Snyder
I've got an application which uses the format -mm-dd hh:mm:ss for its timestamping. I'm trying to determine if the time a record was created was 5 or more minutes before the time the script runs. Using DateTime->now I get a timestamp of -mm-ddThh:mm:ss. I have no clue what the 'T' repres

Re: time comparison

2002-07-26 Thread Paul Tremblay
On Fri, Jul 26, 2002 at 06:51:08AM -0700, lz wrote: > > I went to search.cpan.org trying to look for utility > that will return current GMT time, and couldn't find > any. > According to *Perl Cookbook*: use Time::gmtime; $seconds = $tm->sec; The second line is just an example of getting the s

RE: time comparison

2002-07-25 Thread Timothy Johnson
You can try using Time::Local to convert it to time() format and then just subtract the number of seconds to see if it is expired... -Original Message- From: lz [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 25, 2002 11:02 AM To: [EMAIL PROTECTED] Subject: time comparison Hi guys, I

RE: time comparison

2002-07-25 Thread Nikola Janceski
Date::Calc And any other Date module you can find on search.cpan.org > -Original Message- > From: lz [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 25, 2002 2:02 PM > To: [EMAIL PROTECTED] > Subject: time comparison > > > Hi guys, > > I am extracting

time comparison

2002-07-25 Thread lz
Hi guys, I am extracting the following expiration time from a certificate, and I get expiration time from the certificate in the following format. notAfter=Nov 16 23:59:59 2002 GMT I need to compare system date with the date from a certificate to find out whether certificate has already been