Looks like the %p in the Strptime snippet below doesn't match the "PM"
in the date string. Anyone knows why?

    use DateTime::Format::Strptime;

    my $p = DateTime::Format::Strptime->new(
        pattern => '%d/%b/%Y %H:%M %p',
        locale  => 'en_US',
    );

    my $dt = $p->parse_datetime("21/Jun/2006 01:30 PM");
    print "$dt\n";

-- Mike

Mike Schilli
[EMAIL PROTECTED]

Reply via email to