in reply to Re: DateTime conversion
in thread DateTime conversion

Thou art wise brother davorg.

Your recommendation/advice is more than to the point.

However your statement on Date::Manip is a bit harsh. With such a nice date format one can expect it to work fine (Except when you run Windows of course in case you'll have to set the TimeZone yourself).

use strict; use warnings; use Date::Manip qw(ParseDate); our $TZ = "CET"; # I am running Windows;-) my $date = ParseDate("Thu, 7 Aug 2008 08:35:36 +01:00"); print $date;

Replies are listed 'Best First'.
Re^3: DateTime conversion
by davorg (Chancellor) on Aug 07, 2008 at 11:53 UTC

    I didn't mean to imply that Date::Manip wouldn't work. I know that it will work fine. I will, however, admit that my advice could have been more detailed.

    Date::Manip is an old module. Even it's author says that it is usually the wrong module to use. The most common criticisms of it are that it is large and slow. Personally, my biggest criticism of it is that it doesn't play well with others. The DateTime family of modules all work together well. If you're doing any work with dates and times then I really think that they should be the first place that you look.

    --

    See the Copyright notice on my home node.

    "The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg