in reply to How to Parse an RFC 822 style date with Time::Piece?

Date::Manip should parse this. It's slower than most (all Perl) but I found that it parses almost anything you can throw at it.

  • Comment on Re: How to Parse an RFC 822 style date with Time::Piece?

Replies are listed 'Best First'.
Re^2: How to Parse an RFC 822 style date with Time::Piece?
by Aristotle (Chancellor) on Feb 19, 2003 at 22:41 UTC
    Even its author says (in the POD even, IIRC) that you should probably try to make something else work before you go for Date::Manip though. It's a great module when you are trying to cope with sloppy date/time descriptions or want to allow them, but it tries to be so smart it really shouldn't be used if you don't really need its capabilities.

    Makeshifts last the longest.

      I've seen that comment in the Date::Manip docs. But it's so easy to use and just gets the job done. If I'm concerned with performance, I'll have to look into some of the many other date and time modules. But I have lots of stuff (for example cron jobs) where I'll gladly trade some CPU cycles to save a few of my cycles.

        I never said otherwise; just remember the OP wanted to parse RFC822 dates here - he doesn't need the power of Date::Manip. That's why I objected.

        Makeshifts last the longest.