http://www.perlmonks.org?node_id=521517


in reply to Date conversion to epoch w/out mysql.pm

suaveant's reply has you covered, Time::Local would be my choice if you cannot install Date::* modules from the CPAN.

use Time::Local; my $epoch = timelocal($sec, $min, $hours, $mday, $mon, $year);

-- vek --