in reply to Re^2: date conversion
in thread date conversion

The from_epoch method defaults to the UTC time zone, which is the same as "Z".

When I just tried to install DateTime on my Windows system, there seemed to be a circular installation dependency between DateTime and DateTime::TimeZone. Just FYI.

As an alternative to the second part of saintmike's solution, one could do:

use Date::Parse; use POSIX; my $time = str2time("26/Aug/2005:01:05:43 -0400"); print POSIX::strftime("%Y%m%d%H%M%SZ", gmtime($time)), "\n";

Replies are listed 'Best First'.
Re^4: date conversion
by m2001smith (Initiate) on Aug 27, 2005 at 19:28 UTC
    thx to all who responded.