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
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
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';
>> 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!
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
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
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
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
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
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
10 matches
Mail list logo