[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Perl date comparisons



On 11/16/98 at 2:58 PM, Greg@tradesvc.com (Aiken, Greg) wrote:

> Yes, I realize I could 'hack' at this function myself.  But there
> are probably enough special rules (ie; leap years - unless evenly
> divided by 100, daylight savings, etc...) that I would not be
> knowledgeable about - that my seconds surely would not match the
> seconds returned by 'time()'. Any help would be appreciated.  

You might look at the Benchmark module (in the standard distribution)
and see if it can't be adapted to your needs.  The timediff function
compares two timestamps and returns the difference.

  -nat



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch