in reply to Parsing a date/time string into a UNIX timestamp

Provided you also provide the year, it is easy:

use Time::Local; my $timestring='Thu Jan 8 07:01:01'; my (undef,$mon,$mday,$hour,$min, $sec)=split / |:/, $timestring; my $year=2004; my $time = timelocal($sec,$min,$hour,$mday,$mon,$year); print "$timestring = $time = " . scalar(localtime($time));

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law