Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Dec 2002 19:57:10 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Perl question... calculating difference in time..
Message-ID:  <20021205195710.GB94487@happy-idiot-talk.infracaninophi>
In-Reply-To: <HJEPJELDKPJEEIIFNLNHGECGCBAA.jeff@interchange.ca>
References:  <DC32C8CEB3F8D311B6B5009027DE5AD505E33F4F@stlmail.dra.com> <HJEPJELDKPJEEIIFNLNHGECGCBAA.jeff@interchange.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 05, 2002 at 02:00:20PM -0500, Jeff MacDonald wrote:
> look into the perl module Date::Calc,
> it's has ALOT of features that are quite useful for date manipulation.

The Time::ParseDate module by David Muir Sharnoff looks just the
ticket.

    http://search.cpan.org/author/MUIR/Time-modules-2002.1001/lib/Time/ParseDate.pm

It essentially does the reverse of strftime(3) --- and once you've got
the time expressed as seconds since the epoch, the rest of the
calculations required should be easy.

It's available in ports as part of devel/p5-Time.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
                                                      Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021205195710.GB94487>