in reply to Time::Local -> timelocal()

This is not a direct answer to your question, but I think the correct way to do that is to use Delta_Days function from Date::Calc :)