On Fri, Jul 08, 2005 at 10:38:24AM +1000, Rick Measham wrote:
> Scott R. Godin wrote:
> >I'm sort of surprised that there is no equivalent DateTime-using module 
> >that would mirror the capabilities of Date::Parse. Dave, Have you talked 
> >with Graham Barr at all about merging the arbitrary-date-parsing 
> >capabilities (of Date::Parse) into the DateTime family tree?

You can try my DateTime::Format::DateManip...

It is just a wrapper that uses DateManip to parse the dates then it
converts them to DateTime objects.

As a fair warning, DateTime is a bit dodgy about the way it handles
DST.  (for instance if you are in DST and ask for a time in the non-DST
portion of the year your time will be 1 hour off... e.g. if I ask for
Jan 1 2006, 13:00 now then convert it to seconds since 1970 it will
actually be Jan 1 2006, 12:00).  Also if you have a long running
process that has loaded DateManip and you have a DST change it will
effectively ignore the change since the offset is cached at startup
(you can force it to recompute at runtime, but it doesn't by default).

            -ben

Reply via email to