in reply to Re: date conversion
in thread date conversion

Z is actually a military time zone. I am wondering whether the time zone conversion has been handled.

Replies are listed 'Best First'.
Re^3: date conversion
by Thelonius (Priest) on Aug 27, 2005 at 19:16 UTC
    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";
      thx to all who responded.
Re^3: date conversion
by fmerges (Chaplain) on Aug 28, 2005 at 11:28 UTC
Re^3: date conversion
by jdtoronto (Prior) on Aug 28, 2005 at 05:52 UTC
    'Z' is actually, in the days when such zones were in common use - GMT. It is used by the military, but it is not a military time zone.

    jdtoronto