DateTime::Format::HTTP supports that format (as the "ANSI C asctime()" format). You need to add a four-digit year on the end to be completely accurate, but it can handle it if you don't (according to the documentation).
use DateTime::Format::HTTP; my $dt = DateTime::Format::HTTP->parse_datetime("Thu Jan 8 07:01:01");
From there, you can convert to anything else in the DateTime::Format:: namespace.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
In reply to Re: Parsing a date/time string into a UNIX timestamp
by hardburn
in thread Parsing a date/time string into a UNIX timestamp
by hijinks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |