Nik has asked for the wisdom of the Perl Monks concerning the following question:

Is it possible to abstract one time from another show anyone can use the different to calculate some things?
$xronos = scalar(localtime(time + 10800)); $xronos =~ s/:\d{2} \d{4}//g;
What if the date is like the above?
Can we compare to dates to find letsa say how many hours or minutes is the difference? and if so how? Thanks!
The Devil Is In The Details!

Replies are listed 'Best First'.
Re: absraction of dates
by davidj (Priest) on May 29, 2004 at 21:44 UTC
    If you are looking for a way to calculate the difference between two dates, check out the Date::Calc module. If you are looking to do something different, please clarify your question.

    davidj
Re: absraction of dates
by chanio (Priest) on May 30, 2004 at 04:06 UTC
    without using scalar you just compare the total number of seconds.

    .{\('v')/}
    _`(___)' __________________________