in reply to Converting to epoch time.

I've fallen in love with Date::Calc myself.

$time = Date::Calc::Mktime($year,$month,$day, $hour,$min,$sec);