develooper Front page | perl.datetime | Postings from January 2003

Re: Picking up the ball

Thread Previous | Thread Next
Matt Sergeant
January 10, 2003 05:21
Re: Picking up the ball
Message ID:
From: "David Wheeler" <>

> On Thursday, January 9, 2003, at 02:04  PM, Dave Rolsky wrote:
> > [ CC'd to the Mpls Perl Monger list, Matt Sergeant, and David Wheeler,
> > all
> > of whom have expressed some interest in the topic.  I'd suggest that
> > further discussion be solely on the list, however. ]
> Cool, I've subscribed.

I haven't ;-)

> > A good candidate for
> > this is the existing Date::ICal code, with a bunch of the Time::Piece
> > convenience methods thrown in for good measure.  The only thing
> > Date::Ical
> > needs is to add support for fractional seconds.
> I need to check out Date::ICal. I had assumed that it was just for
> doing stuff with the ICal format, not that it was a general date/time
> munging class. I'll have to check it out. Time::Piece has been my
> favorite for a while, so a combination of the two may well be the ideal
> situation.

I didn't read the rest of this email, nor am I likely to read the rest of
this thread (maybe later in the month though) due to time pressures at work
(anti-spam conference coming up and I haven't written my presentation yet -
same old story).

What I want to see is a Time::Piece based on Date::Ical (or if that becomes then fine).  I've wanted that since I read the Pod for
Date::Ical and realised (like David and Dave have) that it's not just for
the ICal format - it's actually a very nice base class for datetime issues.

Mostly this should be a trivial task. The only hairy issues I can see are
the fact that some of the stuff is C based using struct tm's. I don't know
if stuct tm's can go outside of the epoch seconds range. Does anyone else?
The other thing is that the return from strptime is re-adjusted in C by
turning it into an epoch time and then back into a proper time. But I'm sure
that can also be gotten around.

So - any volunteers to take over Time::Piece? (or supply me with a whopping
great patch?)


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About